@visactor/vrender 0.22.0-vstory.1 → 0.22.0-vstory.10
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 +850 -1266
- package/dist/index.js +851 -1270
- package/dist/index.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.es.js
CHANGED
|
@@ -571,17 +571,17 @@ const EnvContribution = Symbol.for("EnvContribution");
|
|
|
571
571
|
const VGlobal = Symbol.for("VGlobal");
|
|
572
572
|
const DEFAULT_TEXT_FONT_FAMILY = "PingFang SC,Helvetica Neue,Microsoft Yahei,system-ui,-apple-system,segoe ui,Roboto,Helvetica,Arial,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol";
|
|
573
573
|
|
|
574
|
-
var __decorate$
|
|
574
|
+
var __decorate$1J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
575
575
|
var d,
|
|
576
576
|
c = arguments.length,
|
|
577
577
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
578
578
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
579
579
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
580
580
|
},
|
|
581
|
-
__metadata$
|
|
581
|
+
__metadata$1i = undefined && undefined.__metadata || function (k, v) {
|
|
582
582
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
583
583
|
},
|
|
584
|
-
__param$
|
|
584
|
+
__param$U = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
585
585
|
return function (target, key) {
|
|
586
586
|
decorator(target, key, paramIndex);
|
|
587
587
|
};
|
|
@@ -615,12 +615,6 @@ let DefaultGlobal = class {
|
|
|
615
615
|
get env() {
|
|
616
616
|
return this._env;
|
|
617
617
|
}
|
|
618
|
-
get isImageAnonymous() {
|
|
619
|
-
return this._isImageAnonymous;
|
|
620
|
-
}
|
|
621
|
-
set isImageAnonymous(isImageAnonymous) {
|
|
622
|
-
this._isImageAnonymous = isImageAnonymous;
|
|
623
|
-
}
|
|
624
618
|
get devicePixelRatio() {
|
|
625
619
|
return this._env || this.setEnv("browser"), this.envContribution.getDevicePixelRatio();
|
|
626
620
|
}
|
|
@@ -655,7 +649,7 @@ let DefaultGlobal = class {
|
|
|
655
649
|
this._env || this.setEnv("browser"), this.envContribution.applyStyles = support;
|
|
656
650
|
}
|
|
657
651
|
constructor(contributions) {
|
|
658
|
-
this.contributions = contributions, this.
|
|
652
|
+
this.contributions = contributions, this.id = Generator.GenAutoIncrementId(), this.hooks = {
|
|
659
653
|
onSetEnv: new SyncHook(["lastEnv", "env", "global"])
|
|
660
654
|
}, this.measureTextMethod = "native", this.optimizeVisible = !1;
|
|
661
655
|
}
|
|
@@ -783,7 +777,7 @@ let DefaultGlobal = class {
|
|
|
783
777
|
return this._env || this.setEnv("browser"), this.envContribution.copyToClipBoard(text);
|
|
784
778
|
}
|
|
785
779
|
};
|
|
786
|
-
DefaultGlobal = __decorate$
|
|
780
|
+
DefaultGlobal = __decorate$1J([injectable(), __param$U(0, inject(ContributionProvider)), __param$U(0, named(EnvContribution)), __metadata$1i("design:paramtypes", [Object])], DefaultGlobal);
|
|
787
781
|
|
|
788
782
|
var MeasureModeEnum;
|
|
789
783
|
!function (MeasureModeEnum) {
|
|
@@ -4299,6 +4293,7 @@ const DefaultTextAttribute = Object.assign(Object.assign(Object.assign({}, Defau
|
|
|
4299
4293
|
});
|
|
4300
4294
|
const DefaultRichTextAttribute = Object.assign(Object.assign(Object.assign({}, DefaultAttribute), DefaultTextStyle), {
|
|
4301
4295
|
editable: !1,
|
|
4296
|
+
editOptions: null,
|
|
4302
4297
|
width: 300,
|
|
4303
4298
|
height: 300,
|
|
4304
4299
|
ellipsis: !0,
|
|
@@ -4346,7 +4341,7 @@ const DefaultRichTextIconAttribute = Object.assign(Object.assign({}, DefaultImag
|
|
|
4346
4341
|
class Application {}
|
|
4347
4342
|
const application = new Application();
|
|
4348
4343
|
|
|
4349
|
-
const parse
|
|
4344
|
+
const parse = function () {
|
|
4350
4345
|
const tokens = {
|
|
4351
4346
|
linearGradient: /^(linear\-gradient)/i,
|
|
4352
4347
|
radialGradient: /^(radial\-gradient)/i,
|
|
@@ -4499,7 +4494,7 @@ class GradientParser {
|
|
|
4499
4494
|
}
|
|
4500
4495
|
static Parse(c) {
|
|
4501
4496
|
if (GradientParser.IsGradientStr(c)) try {
|
|
4502
|
-
const datum = parse
|
|
4497
|
+
const datum = parse(c)[0];
|
|
4503
4498
|
if (datum) {
|
|
4504
4499
|
if ("linear" === datum.type) return GradientParser.ParseLinear(datum);
|
|
4505
4500
|
if ("radial" === datum.type) return GradientParser.ParseRadial(datum);
|
|
@@ -4753,10 +4748,10 @@ function measureTextCanvas(text, character) {
|
|
|
4753
4748
|
descent: 0,
|
|
4754
4749
|
width: 0
|
|
4755
4750
|
};
|
|
4756
|
-
return "number" != typeof measurement.
|
|
4751
|
+
return "number" != typeof measurement.fontBoundingBoxAscent || "number" != typeof measurement.fontBoundingBoxDescent ? (result.width = measurement.width, result.height = character.fontSize || 0, result.ascent = result.height, result.descent = 0) : (result.width = measurement.width, result.height = Math.floor(measurement.fontBoundingBoxAscent + measurement.fontBoundingBoxDescent), result.ascent = Math.floor(measurement.fontBoundingBoxAscent), result.descent = result.height - result.ascent), result;
|
|
4757
4752
|
}
|
|
4758
4753
|
|
|
4759
|
-
var __decorate$
|
|
4754
|
+
var __decorate$1I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
4760
4755
|
var d,
|
|
4761
4756
|
c = arguments.length,
|
|
4762
4757
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -5138,9 +5133,9 @@ let ATextMeasure = class {
|
|
|
5138
5133
|
return data.str = data.result, data.width += suffixWidth, data;
|
|
5139
5134
|
}
|
|
5140
5135
|
};
|
|
5141
|
-
ATextMeasure = __decorate$
|
|
5136
|
+
ATextMeasure = __decorate$1I([injectable()], ATextMeasure);
|
|
5142
5137
|
|
|
5143
|
-
var __decorate$
|
|
5138
|
+
var __decorate$1H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
5144
5139
|
var d,
|
|
5145
5140
|
c = arguments.length,
|
|
5146
5141
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -5149,7 +5144,7 @@ var __decorate$1J = undefined && undefined.__decorate || function (decorators, t
|
|
|
5149
5144
|
};
|
|
5150
5145
|
const TextMeasureContribution = Symbol.for("TextMeasureContribution");
|
|
5151
5146
|
let DefaultTextMeasureContribution = class extends ATextMeasure {};
|
|
5152
|
-
DefaultTextMeasureContribution = __decorate$
|
|
5147
|
+
DefaultTextMeasureContribution = __decorate$1H([injectable()], DefaultTextMeasureContribution);
|
|
5153
5148
|
|
|
5154
5149
|
const container = new Container();
|
|
5155
5150
|
|
|
@@ -5563,14 +5558,14 @@ class DefaultCanvasAllocate {
|
|
|
5563
5558
|
}
|
|
5564
5559
|
const canvasAllocate = new DefaultCanvasAllocate();
|
|
5565
5560
|
|
|
5566
|
-
var __decorate$
|
|
5561
|
+
var __decorate$1G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
5567
5562
|
var d,
|
|
5568
5563
|
c = arguments.length,
|
|
5569
5564
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
5570
5565
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
5571
5566
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5572
5567
|
},
|
|
5573
|
-
__metadata$
|
|
5568
|
+
__metadata$1h = undefined && undefined.__metadata || function (k, v) {
|
|
5574
5569
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
5575
5570
|
};
|
|
5576
5571
|
const VWindow = Symbol.for("VWindow");
|
|
@@ -5707,19 +5702,19 @@ let DefaultWindow = class {
|
|
|
5707
5702
|
return this._handler.getTopLeft(baseWindow);
|
|
5708
5703
|
}
|
|
5709
5704
|
};
|
|
5710
|
-
DefaultWindow = __decorate$
|
|
5705
|
+
DefaultWindow = __decorate$1G([injectable(), __metadata$1h("design:paramtypes", [])], DefaultWindow);
|
|
5711
5706
|
|
|
5712
|
-
var __decorate$
|
|
5707
|
+
var __decorate$1F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
5713
5708
|
var d,
|
|
5714
5709
|
c = arguments.length,
|
|
5715
5710
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
5716
5711
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
5717
5712
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
5718
5713
|
},
|
|
5719
|
-
__metadata$
|
|
5714
|
+
__metadata$1g = undefined && undefined.__metadata || function (k, v) {
|
|
5720
5715
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
5721
5716
|
},
|
|
5722
|
-
__param$
|
|
5717
|
+
__param$T = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
5723
5718
|
return function (target, key) {
|
|
5724
5719
|
decorator(target, key, paramIndex);
|
|
5725
5720
|
};
|
|
@@ -5814,7 +5809,7 @@ let DefaultGraphicUtil = class {
|
|
|
5814
5809
|
return c.nativeCanvas ? c.nativeCanvas : null;
|
|
5815
5810
|
}
|
|
5816
5811
|
};
|
|
5817
|
-
DefaultGraphicUtil = __decorate$
|
|
5812
|
+
DefaultGraphicUtil = __decorate$1F([injectable(), __param$T(0, inject(ContributionProvider)), __param$T(0, named(TextMeasureContribution)), __metadata$1g("design:paramtypes", [Object])], DefaultGraphicUtil);
|
|
5818
5813
|
var TransformMode;
|
|
5819
5814
|
!function (TransformMode) {
|
|
5820
5815
|
TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
|
|
@@ -5872,7 +5867,7 @@ let DefaultTransformUtil = class {
|
|
|
5872
5867
|
return this;
|
|
5873
5868
|
}
|
|
5874
5869
|
};
|
|
5875
|
-
DefaultTransformUtil = __decorate$
|
|
5870
|
+
DefaultTransformUtil = __decorate$1F([injectable(), __metadata$1g("design:paramtypes", [])], DefaultTransformUtil);
|
|
5876
5871
|
|
|
5877
5872
|
const defaultThemeObj = {
|
|
5878
5873
|
arc: DefaultArcAttribute,
|
|
@@ -9721,7 +9716,7 @@ class ResourceLoader {
|
|
|
9721
9716
|
}
|
|
9722
9717
|
static GetFile(url, type) {
|
|
9723
9718
|
let data = ResourceLoader.cache.get(url);
|
|
9724
|
-
return data ? "fail" === data.loadState ? Promise.reject() : "
|
|
9719
|
+
return data ? "init" === data.loadState || "fail" === data.loadState ? Promise.reject() : "loading" === data.loadState ? data.dataPromise.then(data => data.data) : Promise.resolve(data.data) : (data = {
|
|
9725
9720
|
type: type,
|
|
9726
9721
|
loadState: "init"
|
|
9727
9722
|
}, ResourceLoader.cache.set(url, data), "arrayBuffer" === type ? data.dataPromise = application.global.loadArrayBuffer(url) : "blob" === type ? data.dataPromise = application.global.loadBlob(url) : "json" === type && (data.dataPromise = application.global.loadJson(url)), data.dataPromise.then(data => data.data));
|
|
@@ -9831,7 +9826,7 @@ class Graphic extends Node {
|
|
|
9831
9826
|
}
|
|
9832
9827
|
}
|
|
9833
9828
|
get AABBBounds() {
|
|
9834
|
-
return this.tryUpdateAABBBounds(
|
|
9829
|
+
return this.tryUpdateAABBBounds();
|
|
9835
9830
|
}
|
|
9836
9831
|
get OBBBounds() {
|
|
9837
9832
|
return this.tryUpdateOBBBounds();
|
|
@@ -9875,12 +9870,13 @@ class Graphic extends Node {
|
|
|
9875
9870
|
onAnimateBind(animate) {
|
|
9876
9871
|
this._emitCustomEvent("animate-bind", animate);
|
|
9877
9872
|
}
|
|
9878
|
-
tryUpdateAABBBounds(
|
|
9873
|
+
tryUpdateAABBBounds() {
|
|
9874
|
+
const full = "imprecise" === this.attribute.boundsMode;
|
|
9879
9875
|
if (!this.shouldUpdateAABBBounds()) return this._AABBBounds;
|
|
9880
9876
|
if (!this.valid) return this._AABBBounds.clear(), this._AABBBounds;
|
|
9881
9877
|
application.graphicService.beforeUpdateAABBBounds(this, this.stage, !0, this._AABBBounds);
|
|
9882
9878
|
const bounds = this.doUpdateAABBBounds(full);
|
|
9883
|
-
return application.graphicService.afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, !0), bounds;
|
|
9879
|
+
return application.graphicService.afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, !0), "empty" === this.attribute.boundsMode && bounds.clear(), bounds;
|
|
9884
9880
|
}
|
|
9885
9881
|
tryUpdateOBBBounds() {
|
|
9886
9882
|
if (this._OBBBounds || (this._OBBBounds = new OBBBounds()), this.tryUpdateAABBBounds(), this.updateOBBBoundsStamp === this.updateAABBBoundsStamp) return this._OBBBounds;
|
|
@@ -10124,7 +10120,7 @@ class Graphic extends Node {
|
|
|
10124
10120
|
context && context.skipUpdateCallback || (application.graphicService.onAttributeUpdate(this), this._emitCustomEvent("afterAttributeUpdate", context));
|
|
10125
10121
|
}
|
|
10126
10122
|
update(d) {
|
|
10127
|
-
d ? (d.bounds && this.tryUpdateAABBBounds(
|
|
10123
|
+
d ? (d.bounds && this.tryUpdateAABBBounds(), d.trans && this.tryUpdateLocalTransMatrix()) : (this.tryUpdateAABBBounds(), this.tryUpdateLocalTransMatrix());
|
|
10128
10124
|
}
|
|
10129
10125
|
hasState(stateName) {
|
|
10130
10126
|
return !(!this.currentStates || !this.currentStates.length) && (!!isNil$1(stateName) || this.currentStates.includes(stateName));
|
|
@@ -10916,7 +10912,7 @@ class Group extends Graphic {
|
|
|
10916
10912
|
application.graphicService.beforeUpdateAABBBounds(this, this.stage, !0, this._AABBBounds);
|
|
10917
10913
|
const selfChange = this.shouldSelfChangeUpdateAABBBounds(),
|
|
10918
10914
|
bounds = this.doUpdateAABBBounds();
|
|
10919
|
-
return this.addUpdateLayoutTag(), application.graphicService.afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, selfChange), bounds;
|
|
10915
|
+
return this.addUpdateLayoutTag(), application.graphicService.afterUpdateAABBBounds(this, this.stage, this._AABBBounds, this, selfChange), "empty" === this.attribute.boundsMode && bounds.clear(), bounds;
|
|
10920
10916
|
}
|
|
10921
10917
|
doUpdateLocalMatrix() {
|
|
10922
10918
|
const {
|
|
@@ -11174,14 +11170,14 @@ const DynamicLayerHandlerContribution = Symbol.for("DynamicLayerHandlerContribut
|
|
|
11174
11170
|
const VirtualLayerHandlerContribution = Symbol.for("VirtualLayerHandlerContribution");
|
|
11175
11171
|
|
|
11176
11172
|
var DefaultLayerService_1,
|
|
11177
|
-
__decorate$
|
|
11173
|
+
__decorate$1E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
11178
11174
|
var d,
|
|
11179
11175
|
c = arguments.length,
|
|
11180
11176
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
11181
11177
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
11182
11178
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11183
11179
|
},
|
|
11184
|
-
__metadata$
|
|
11180
|
+
__metadata$1f = undefined && undefined.__metadata || function (k, v) {
|
|
11185
11181
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
11186
11182
|
};
|
|
11187
11183
|
let DefaultLayerService = DefaultLayerService_1 = class {
|
|
@@ -11245,7 +11241,7 @@ let DefaultLayerService = DefaultLayerService_1 = class {
|
|
|
11245
11241
|
this.layerMap.delete(stage);
|
|
11246
11242
|
}
|
|
11247
11243
|
};
|
|
11248
|
-
DefaultLayerService.idprefix = "visactor_layer", DefaultLayerService.prefix_count = 0, DefaultLayerService = DefaultLayerService_1 = __decorate$
|
|
11244
|
+
DefaultLayerService.idprefix = "visactor_layer", DefaultLayerService.prefix_count = 0, DefaultLayerService = DefaultLayerService_1 = __decorate$1E([injectable(), __metadata$1f("design:paramtypes", [])], DefaultLayerService);
|
|
11249
11245
|
|
|
11250
11246
|
var coreModule = new ContainerModule(bind => {
|
|
11251
11247
|
bind(VGlobal).to(DefaultGlobal).inSingletonScope(), bind(VWindow).to(DefaultWindow), bind(GraphicUtil).to(DefaultGraphicUtil).inSingletonScope(), bind(TransformUtil).to(DefaultTransformUtil).inSingletonScope(), bind(LayerService).to(DefaultLayerService).inSingletonScope();
|
|
@@ -11784,17 +11780,17 @@ class DefaultMat4Allocate {
|
|
|
11784
11780
|
const matrixAllocate = new DefaultMatrixAllocate();
|
|
11785
11781
|
const mat4Allocate = new DefaultMat4Allocate();
|
|
11786
11782
|
|
|
11787
|
-
var __decorate$
|
|
11783
|
+
var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
11788
11784
|
var d,
|
|
11789
11785
|
c = arguments.length,
|
|
11790
11786
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
11791
11787
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
11792
11788
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11793
11789
|
},
|
|
11794
|
-
__metadata$
|
|
11790
|
+
__metadata$1e = undefined && undefined.__metadata || function (k, v) {
|
|
11795
11791
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
11796
11792
|
},
|
|
11797
|
-
__param$
|
|
11793
|
+
__param$S = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
11798
11794
|
return function (target, key) {
|
|
11799
11795
|
decorator(target, key, paramIndex);
|
|
11800
11796
|
};
|
|
@@ -12006,7 +12002,7 @@ let DefaultGraphicService = class {
|
|
|
12006
12002
|
};
|
|
12007
12003
|
}
|
|
12008
12004
|
};
|
|
12009
|
-
DefaultGraphicService = __decorate$
|
|
12005
|
+
DefaultGraphicService = __decorate$1D([injectable(), __param$S(0, inject(GraphicCreator$1)), __metadata$1e("design:paramtypes", [Object])], DefaultGraphicService);
|
|
12010
12006
|
|
|
12011
12007
|
const updateBoundsOfCommonOuterBorder = (attribute, theme, aabbBounds) => {
|
|
12012
12008
|
const {
|
|
@@ -13243,7 +13239,7 @@ class CustomSymbolClass {
|
|
|
13243
13239
|
return isNumber$1(size) ? size : Math.min(size[0], size[1]);
|
|
13244
13240
|
}
|
|
13245
13241
|
drawWithClipRange(ctx, size, x, y, clipRange, z, cb) {
|
|
13246
|
-
return this.isSvg ? !!this.svgCache && (this.svgCache.forEach(item => {
|
|
13242
|
+
return size = this.parseSize(size), this.isSvg ? !!this.svgCache && (this.svgCache.forEach(item => {
|
|
13247
13243
|
item.path.drawWithClipRange(ctx, size, x, y, clipRange), cb && cb(item.path, item.attribute);
|
|
13248
13244
|
}), !1) : (this.path.drawWithClipRange(ctx, size, x, y, clipRange), !1);
|
|
13249
13245
|
}
|
|
@@ -13885,6 +13881,14 @@ class Frame {
|
|
|
13885
13881
|
}
|
|
13886
13882
|
}
|
|
13887
13883
|
|
|
13884
|
+
function getFixedLRTB(left, right, top, bottom) {
|
|
13885
|
+
return {
|
|
13886
|
+
left: Math.round(left),
|
|
13887
|
+
top: Math.round(top),
|
|
13888
|
+
right: Math.round(right),
|
|
13889
|
+
bottom: Math.round(bottom)
|
|
13890
|
+
};
|
|
13891
|
+
}
|
|
13888
13892
|
class Paragraph {
|
|
13889
13893
|
constructor(text, newLine, character) {
|
|
13890
13894
|
this.fontSize = character.fontSize || 16, this.textBaseline = character.textBaseline || "alphabetic";
|
|
@@ -13907,7 +13911,32 @@ class Paragraph {
|
|
|
13907
13911
|
} = measureTextCanvas(this.text, this.character);
|
|
13908
13912
|
this.width = width, "vertical" === this.direction && (this.widthOrigin = this.width, this.width = this.heightOrigin, this.height = this.widthOrigin);
|
|
13909
13913
|
}
|
|
13910
|
-
|
|
13914
|
+
drawBackground(ctx, top, ascent, deltaLeft, isLineFirst, textAlign, lineHeight) {
|
|
13915
|
+
if (!this.character.background || this.character.backgroundOpacity && !(this.character.backgroundOpacity > 0)) return;
|
|
13916
|
+
let baseline = top + ascent,
|
|
13917
|
+
text = this.text,
|
|
13918
|
+
left = this.left + deltaLeft;
|
|
13919
|
+
baseline += this.top;
|
|
13920
|
+
let direction = this.direction;
|
|
13921
|
+
if (this.verticalEllipsis) text = this.ellipsisStr, direction = "vertical", baseline -= this.ellipsisWidth / 2;else {
|
|
13922
|
+
if ("hide" === this.ellipsis) return;
|
|
13923
|
+
if ("add" === this.ellipsis) text += this.ellipsisStr, "right" !== textAlign && "end" !== textAlign || (left -= this.ellipsisWidth);else if ("replace" === this.ellipsis) {
|
|
13924
|
+
const index = getStrByWithCanvas(text, ("vertical" === direction ? this.height : this.width) - this.ellipsisWidth + this.ellipsisOtherParagraphWidth, this.character, text.length - 1);
|
|
13925
|
+
if (text = text.slice(0, index), text += this.ellipsisStr, "right" === textAlign || "end" === textAlign) {
|
|
13926
|
+
const {
|
|
13927
|
+
width: width
|
|
13928
|
+
} = measureTextCanvas(this.text.slice(index), this.character);
|
|
13929
|
+
"vertical" === direction || (left -= this.ellipsisWidth - width);
|
|
13930
|
+
}
|
|
13931
|
+
}
|
|
13932
|
+
}
|
|
13933
|
+
const lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + lineHeight);
|
|
13934
|
+
return Object.assign(Object.assign({}, lrtb), {
|
|
13935
|
+
fillStyle: this.character.background,
|
|
13936
|
+
globalAlpha: this.character.backgroundOpacity
|
|
13937
|
+
});
|
|
13938
|
+
}
|
|
13939
|
+
draw(ctx, top, ascent, deltaLeft, isLineFirst, textAlign, lineHeight) {
|
|
13911
13940
|
let baseline = top + ascent,
|
|
13912
13941
|
text = this.text,
|
|
13913
13942
|
left = this.left + deltaLeft;
|
|
@@ -13932,15 +13961,31 @@ class Paragraph {
|
|
|
13932
13961
|
case "sub":
|
|
13933
13962
|
baseline += this.descent / 2;
|
|
13934
13963
|
}
|
|
13935
|
-
|
|
13936
|
-
const fillStyle = ctx.fillStyle,
|
|
13937
|
-
globalAlpha = ctx.globalAlpha;
|
|
13938
|
-
ctx.fillStyle = this.character.background, void 0 !== this.character.backgroundOpacity && (ctx.globalAlpha = this.character.backgroundOpacity), ctx.fillRect(left, top, this.widthOrigin || this.width, this.lineHeight), ctx.fillStyle = fillStyle, ctx.globalAlpha = globalAlpha;
|
|
13939
|
-
}
|
|
13964
|
+
"vertical" === direction && (ctx.save(), ctx.rotateAbout(Math.PI / 2, left, baseline), ctx.translate(-this.heightOrigin || -this.lineHeight / 2, -this.descent / 2), ctx.translate(left, baseline), left = 0, baseline = 0);
|
|
13940
13965
|
const {
|
|
13941
13966
|
lineWidth = 1
|
|
13942
13967
|
} = this.character;
|
|
13943
|
-
this.character.stroke && lineWidth && ctx.strokeText(text, left, baseline), this.character.fill && ctx.fillText(text, left, baseline), this.character.fill
|
|
13968
|
+
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) {
|
|
13969
|
+
if (this.character.underline) {
|
|
13970
|
+
const top = 1 + baseline,
|
|
13971
|
+
lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
|
|
13972
|
+
ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
|
|
13973
|
+
}
|
|
13974
|
+
if (this.character.lineThrough) {
|
|
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
|
+
} else if ("underline" === this.character.textDecoration) {
|
|
13980
|
+
const top = 1 + baseline,
|
|
13981
|
+
lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
|
|
13982
|
+
ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
|
|
13983
|
+
} else if ("line-through" === this.character.textDecoration) {
|
|
13984
|
+
const top = 1 + baseline - this.ascent / 2,
|
|
13985
|
+
lrtb = getFixedLRTB(left, left + (this.widthOrigin || this.width), top, top + (this.character.fontSize ? Math.max(1, Math.floor(this.character.fontSize / 10)) : 1));
|
|
13986
|
+
ctx.fillRect(lrtb.left, lrtb.top, lrtb.right - lrtb.left, lrtb.bottom - lrtb.top);
|
|
13987
|
+
}
|
|
13988
|
+
"vertical" === direction && ctx.restore();
|
|
13944
13989
|
}
|
|
13945
13990
|
getWidthWithEllips(direction) {
|
|
13946
13991
|
let text = this.text;
|
|
@@ -14163,7 +14208,20 @@ class Line {
|
|
|
14163
14208
|
paragraph.ellipsis = "hide", otherParagraphWidth += paragraph.width;
|
|
14164
14209
|
}
|
|
14165
14210
|
}
|
|
14211
|
+
let fillStyle = "",
|
|
14212
|
+
globalAlpha = -1,
|
|
14213
|
+
currBgList = [];
|
|
14214
|
+
const bgList = [currBgList];
|
|
14166
14215
|
this.paragraphs.forEach((paragraph, index) => {
|
|
14216
|
+
if (paragraph instanceof RichTextIcon) return;
|
|
14217
|
+
const data = paragraph.drawBackground(ctx, y, this.ascent, x, 0 === index, this.textAlign, this.height);
|
|
14218
|
+
data && (fillStyle === data.fillStyle && globalAlpha === data.globalAlpha || (currBgList = [], bgList.push(currBgList), fillStyle = data.fillStyle, globalAlpha = data.globalAlpha), currBgList.push(data));
|
|
14219
|
+
}), bgList.forEach(bg => {
|
|
14220
|
+
if (0 === bg.length) return;
|
|
14221
|
+
const data = bg[0],
|
|
14222
|
+
end = bg[bg.length - 1];
|
|
14223
|
+
ctx.fillStyle = data.fillStyle, ctx.globalAlpha = data.globalAlpha, ctx.fillRect(data.left, data.top, end.right - data.left, end.bottom - data.top);
|
|
14224
|
+
}), this.paragraphs.forEach((paragraph, index) => {
|
|
14167
14225
|
if (paragraph instanceof RichTextIcon) return paragraph.setAttributes({
|
|
14168
14226
|
x: x + paragraph._x,
|
|
14169
14227
|
y: y + paragraph._y
|
|
@@ -14174,7 +14232,7 @@ class Line {
|
|
|
14174
14232
|
x2: this.left + this.actualWidth,
|
|
14175
14233
|
y2: this.top + this.height
|
|
14176
14234
|
};
|
|
14177
|
-
applyStrokeStyle(ctx, paragraph.character), applyFillStyle(ctx, paragraph.character, b), paragraph.draw(ctx, y, this.ascent, x, 0 === index, this.textAlign);
|
|
14235
|
+
applyStrokeStyle(ctx, paragraph.character), applyFillStyle(ctx, paragraph.character, b), paragraph.draw(ctx, y, this.ascent, x, 0 === index, this.textAlign, this.height);
|
|
14178
14236
|
});
|
|
14179
14237
|
}
|
|
14180
14238
|
getWidthWithEllips(ellipsis) {
|
|
@@ -14325,7 +14383,13 @@ class RichText extends Graphic {
|
|
|
14325
14383
|
}
|
|
14326
14384
|
return cache.every(item => item.isComposing || !(item.text && isString$1(item.text) && RichText.splitText(item.text).length > 1));
|
|
14327
14385
|
}
|
|
14386
|
+
static splitEmoji(text) {
|
|
14387
|
+
return [...new Intl.Segmenter().segment(text)].map(x => x.segment);
|
|
14388
|
+
}
|
|
14328
14389
|
static splitText(text) {
|
|
14390
|
+
try {
|
|
14391
|
+
return this.splitEmoji(text);
|
|
14392
|
+
} catch (e) {}
|
|
14329
14393
|
return Array.from(text);
|
|
14330
14394
|
}
|
|
14331
14395
|
static TransformTextConfig2SingleCharacter(textConfig) {
|
|
@@ -14341,13 +14405,15 @@ class RichText extends Graphic {
|
|
|
14341
14405
|
}), tc;
|
|
14342
14406
|
}
|
|
14343
14407
|
updateAABBBounds(attribute, richtextTheme, aabbBounds) {
|
|
14408
|
+
var _a, _b;
|
|
14344
14409
|
const {
|
|
14345
14410
|
width = richtextTheme.width,
|
|
14346
14411
|
height = richtextTheme.height,
|
|
14347
14412
|
maxWidth = richtextTheme.maxWidth,
|
|
14348
14413
|
maxHeight = richtextTheme.maxHeight,
|
|
14349
14414
|
textAlign = richtextTheme.textAlign,
|
|
14350
|
-
textBaseline = richtextTheme.textBaseline
|
|
14415
|
+
textBaseline = richtextTheme.textBaseline,
|
|
14416
|
+
editOptions: editOptions
|
|
14351
14417
|
} = attribute;
|
|
14352
14418
|
if (width > 0 && height > 0) aabbBounds.set(0, 0, width, height);else {
|
|
14353
14419
|
const frameCache = this.getFrameCache(),
|
|
@@ -14359,6 +14425,7 @@ class RichText extends Graphic {
|
|
|
14359
14425
|
contentHeight = height || actualHeight || 0;
|
|
14360
14426
|
contentHeight = "number" == typeof maxHeight && contentHeight > maxHeight ? maxHeight : contentHeight || 0, contentWidth = "number" == typeof maxWidth && contentWidth > maxWidth ? maxWidth : contentWidth || 0, aabbBounds.set(0, 0, contentWidth, contentHeight);
|
|
14361
14427
|
}
|
|
14428
|
+
editOptions && editOptions.keepHeightWhileEmpty && !aabbBounds.height() && !(null === (_a = attribute.textConfig) || void 0 === _a ? void 0 : _a.length) && (aabbBounds.y2 = aabbBounds.y1 + (null !== (_b = attribute.fontSize) && void 0 !== _b ? _b : 12), aabbBounds.x2 = aabbBounds.x1 + 2);
|
|
14362
14429
|
let deltaY = 0;
|
|
14363
14430
|
switch (textBaseline) {
|
|
14364
14431
|
case "top":
|
|
@@ -15336,17 +15403,17 @@ class BaseRender {
|
|
|
15336
15403
|
}
|
|
15337
15404
|
}
|
|
15338
15405
|
|
|
15339
|
-
var __decorate$
|
|
15406
|
+
var __decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15340
15407
|
var d,
|
|
15341
15408
|
c = arguments.length,
|
|
15342
15409
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
15343
15410
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
15344
15411
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15345
15412
|
},
|
|
15346
|
-
__metadata$
|
|
15413
|
+
__metadata$1d = undefined && undefined.__metadata || function (k, v) {
|
|
15347
15414
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
15348
15415
|
},
|
|
15349
|
-
__param$
|
|
15416
|
+
__param$R = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
15350
15417
|
return function (target, key) {
|
|
15351
15418
|
decorator(target, key, paramIndex);
|
|
15352
15419
|
};
|
|
@@ -15443,7 +15510,7 @@ let DefaultBaseInteractiveRenderContribution = class {
|
|
|
15443
15510
|
});
|
|
15444
15511
|
}
|
|
15445
15512
|
};
|
|
15446
|
-
DefaultBaseInteractiveRenderContribution = __decorate$
|
|
15513
|
+
DefaultBaseInteractiveRenderContribution = __decorate$1C([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(InteractiveSubRenderContribution)), __metadata$1d("design:paramtypes", [Object])], DefaultBaseInteractiveRenderContribution);
|
|
15447
15514
|
|
|
15448
15515
|
function formatRatio(ratio) {
|
|
15449
15516
|
return ratio <= .5 ? 4 * ratio - 1 : -4 * ratio + 3;
|
|
@@ -15791,7 +15858,7 @@ function createRectPath(path, x, y, width, height, rectCornerRadius) {
|
|
|
15791
15858
|
return !edgeCb && path.closePath(), path;
|
|
15792
15859
|
}
|
|
15793
15860
|
|
|
15794
|
-
var __decorate$
|
|
15861
|
+
var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
15795
15862
|
var d,
|
|
15796
15863
|
c = arguments.length,
|
|
15797
15864
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -15856,7 +15923,7 @@ let SplitRectBeforeRenderContribution = class {
|
|
|
15856
15923
|
Array.isArray(stroke) && stroke.some(s => !1 === s) && (doFillOrStroke.doStroke = !1);
|
|
15857
15924
|
}
|
|
15858
15925
|
};
|
|
15859
|
-
SplitRectBeforeRenderContribution = __decorate$
|
|
15926
|
+
SplitRectBeforeRenderContribution = __decorate$1B([injectable()], SplitRectBeforeRenderContribution);
|
|
15860
15927
|
let SplitRectAfterRenderContribution = class {
|
|
15861
15928
|
constructor() {
|
|
15862
15929
|
this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
@@ -15893,7 +15960,7 @@ let SplitRectAfterRenderContribution = class {
|
|
|
15893
15960
|
}
|
|
15894
15961
|
}
|
|
15895
15962
|
};
|
|
15896
|
-
SplitRectAfterRenderContribution = __decorate$
|
|
15963
|
+
SplitRectAfterRenderContribution = __decorate$1B([injectable()], SplitRectAfterRenderContribution);
|
|
15897
15964
|
const defaultRectRenderContribution = new DefaultRectRenderContribution();
|
|
15898
15965
|
const defaultRectTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
15899
15966
|
const defaultRectBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
@@ -15902,8 +15969,8 @@ class DefaultImageRenderContribution extends DefaultRectRenderContribution {
|
|
|
15902
15969
|
constructor() {
|
|
15903
15970
|
super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
15904
15971
|
}
|
|
15905
|
-
drawShape(
|
|
15906
|
-
return super.drawShape(
|
|
15972
|
+
drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
|
|
15973
|
+
return super.drawShape(rect, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb);
|
|
15907
15974
|
}
|
|
15908
15975
|
}
|
|
15909
15976
|
const defaultImageRenderContribution = new DefaultImageRenderContribution();
|
|
@@ -15998,17 +16065,17 @@ class DefaultAreaTextureRenderContribution extends DefaultBaseTextureRenderContr
|
|
|
15998
16065
|
}
|
|
15999
16066
|
}
|
|
16000
16067
|
|
|
16001
|
-
var __decorate$
|
|
16068
|
+
var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16002
16069
|
var d,
|
|
16003
16070
|
c = arguments.length,
|
|
16004
16071
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16005
16072
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
16006
16073
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16007
16074
|
},
|
|
16008
|
-
__metadata$
|
|
16075
|
+
__metadata$1c = undefined && undefined.__metadata || function (k, v) {
|
|
16009
16076
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16010
16077
|
},
|
|
16011
|
-
__param$
|
|
16078
|
+
__param$Q = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
16012
16079
|
return function (target, key) {
|
|
16013
16080
|
decorator(target, key, paramIndex);
|
|
16014
16081
|
};
|
|
@@ -16172,19 +16239,19 @@ let DefaultCanvasArcRender = class extends BaseRender {
|
|
|
16172
16239
|
this._draw(arc, arcAttribute, !1, drawContext, params);
|
|
16173
16240
|
}
|
|
16174
16241
|
};
|
|
16175
|
-
DefaultCanvasArcRender = __decorate$
|
|
16242
|
+
DefaultCanvasArcRender = __decorate$1A([injectable(), __param$Q(0, inject(ContributionProvider)), __param$Q(0, named(ArcRenderContribution)), __metadata$1c("design:paramtypes", [Object])], DefaultCanvasArcRender);
|
|
16176
16243
|
|
|
16177
|
-
var __decorate$
|
|
16244
|
+
var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16178
16245
|
var d,
|
|
16179
16246
|
c = arguments.length,
|
|
16180
16247
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16181
16248
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
16182
16249
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16183
16250
|
},
|
|
16184
|
-
__metadata$
|
|
16251
|
+
__metadata$1b = undefined && undefined.__metadata || function (k, v) {
|
|
16185
16252
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16186
16253
|
},
|
|
16187
|
-
__param$
|
|
16254
|
+
__param$P = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
16188
16255
|
return function (target, key) {
|
|
16189
16256
|
decorator(target, key, paramIndex);
|
|
16190
16257
|
};
|
|
@@ -16225,7 +16292,7 @@ let DefaultCanvasCircleRender = class extends BaseRender {
|
|
|
16225
16292
|
this._draw(circle, circleAttribute, !1, drawContext, params);
|
|
16226
16293
|
}
|
|
16227
16294
|
};
|
|
16228
|
-
DefaultCanvasCircleRender = __decorate$
|
|
16295
|
+
DefaultCanvasCircleRender = __decorate$1z([injectable(), __param$P(0, inject(ContributionProvider)), __param$P(0, named(CircleRenderContribution)), __metadata$1b("design:paramtypes", [Object])], DefaultCanvasCircleRender);
|
|
16229
16296
|
|
|
16230
16297
|
function drawSegItem(ctx, curve, endPercent, params) {
|
|
16231
16298
|
if (!curve.p1) return;
|
|
@@ -16349,7 +16416,7 @@ function drawIncrementalAreaSegments(path, lastSeg, segments, params) {
|
|
|
16349
16416
|
});
|
|
16350
16417
|
}
|
|
16351
16418
|
|
|
16352
|
-
var __decorate$
|
|
16419
|
+
var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16353
16420
|
var d,
|
|
16354
16421
|
c = arguments.length,
|
|
16355
16422
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -16510,7 +16577,7 @@ let DefaultCanvasLineRender = class extends BaseRender {
|
|
|
16510
16577
|
} else this.drawSegmentItem(context, line.cache, !!fill, !!stroke, fillOpacity, strokeOpacity, line.attribute, lineAttribute, clipRange, clipRangeByDimension, x, y, line, fillCb, strokeCb);
|
|
16511
16578
|
}
|
|
16512
16579
|
};
|
|
16513
|
-
DefaultCanvasLineRender = __decorate$
|
|
16580
|
+
DefaultCanvasLineRender = __decorate$1y([injectable()], DefaultCanvasLineRender);
|
|
16514
16581
|
|
|
16515
16582
|
function drawAreaSegments(path, segPath, percent, params) {
|
|
16516
16583
|
var _a;
|
|
@@ -16639,17 +16706,17 @@ function drawAreaBlock(path, topList, bottomList, params) {
|
|
|
16639
16706
|
const defaultAreaTextureRenderContribution = new DefaultAreaTextureRenderContribution();
|
|
16640
16707
|
const defaultAreaBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
16641
16708
|
|
|
16642
|
-
var __decorate$
|
|
16709
|
+
var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16643
16710
|
var d,
|
|
16644
16711
|
c = arguments.length,
|
|
16645
16712
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16646
16713
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
16647
16714
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16648
16715
|
},
|
|
16649
|
-
__metadata$
|
|
16716
|
+
__metadata$1a = undefined && undefined.__metadata || function (k, v) {
|
|
16650
16717
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16651
16718
|
},
|
|
16652
|
-
__param$
|
|
16719
|
+
__param$O = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
16653
16720
|
return function (target, key) {
|
|
16654
16721
|
decorator(target, key, paramIndex);
|
|
16655
16722
|
};
|
|
@@ -16892,22 +16959,22 @@ let DefaultCanvasAreaRender = class extends BaseRender {
|
|
|
16892
16959
|
})(), !1;
|
|
16893
16960
|
}
|
|
16894
16961
|
};
|
|
16895
|
-
DefaultCanvasAreaRender = __decorate$
|
|
16962
|
+
DefaultCanvasAreaRender = __decorate$1x([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(AreaRenderContribution)), __metadata$1a("design:paramtypes", [Object])], DefaultCanvasAreaRender);
|
|
16896
16963
|
|
|
16897
16964
|
const defaultPathTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
16898
16965
|
const defaultPathBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
16899
16966
|
|
|
16900
|
-
var __decorate$
|
|
16967
|
+
var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16901
16968
|
var d,
|
|
16902
16969
|
c = arguments.length,
|
|
16903
16970
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16904
16971
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
16905
16972
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16906
16973
|
},
|
|
16907
|
-
__metadata$
|
|
16974
|
+
__metadata$19 = undefined && undefined.__metadata || function (k, v) {
|
|
16908
16975
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16909
16976
|
},
|
|
16910
|
-
__param$
|
|
16977
|
+
__param$N = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
16911
16978
|
return function (target, key) {
|
|
16912
16979
|
decorator(target, key, paramIndex);
|
|
16913
16980
|
};
|
|
@@ -16951,19 +17018,19 @@ let DefaultCanvasPathRender = class extends BaseRender {
|
|
|
16951
17018
|
this.tempTheme = pathAttribute, this._draw(path, pathAttribute, !1, drawContext, params), this.tempTheme = null;
|
|
16952
17019
|
}
|
|
16953
17020
|
};
|
|
16954
|
-
DefaultCanvasPathRender = __decorate$
|
|
17021
|
+
DefaultCanvasPathRender = __decorate$1w([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(PathRenderContribution)), __metadata$19("design:paramtypes", [Object])], DefaultCanvasPathRender);
|
|
16955
17022
|
|
|
16956
|
-
var __decorate$
|
|
17023
|
+
var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
16957
17024
|
var d,
|
|
16958
17025
|
c = arguments.length,
|
|
16959
17026
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
16960
17027
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
16961
17028
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
16962
17029
|
},
|
|
16963
|
-
__metadata$
|
|
17030
|
+
__metadata$18 = undefined && undefined.__metadata || function (k, v) {
|
|
16964
17031
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
16965
17032
|
},
|
|
16966
|
-
__param$
|
|
17033
|
+
__param$M = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
16967
17034
|
return function (target, key) {
|
|
16968
17035
|
decorator(target, key, paramIndex);
|
|
16969
17036
|
};
|
|
@@ -17023,19 +17090,19 @@ let DefaultCanvasRectRender = class extends BaseRender {
|
|
|
17023
17090
|
this.tempTheme = rectAttribute, this._draw(rect, rectAttribute, !1, drawContext, params), this.tempTheme = null;
|
|
17024
17091
|
}
|
|
17025
17092
|
};
|
|
17026
|
-
DefaultCanvasRectRender = __decorate$
|
|
17093
|
+
DefaultCanvasRectRender = __decorate$1v([injectable(), __param$M(0, inject(ContributionProvider)), __param$M(0, named(RectRenderContribution)), __metadata$18("design:paramtypes", [Object])], DefaultCanvasRectRender);
|
|
17027
17094
|
|
|
17028
|
-
var __decorate$
|
|
17095
|
+
var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17029
17096
|
var d,
|
|
17030
17097
|
c = arguments.length,
|
|
17031
17098
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17032
17099
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17033
17100
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17034
17101
|
},
|
|
17035
|
-
__metadata$
|
|
17102
|
+
__metadata$17 = undefined && undefined.__metadata || function (k, v) {
|
|
17036
17103
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17037
17104
|
},
|
|
17038
|
-
__param$
|
|
17105
|
+
__param$L = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17039
17106
|
return function (target, key) {
|
|
17040
17107
|
decorator(target, key, paramIndex);
|
|
17041
17108
|
};
|
|
@@ -17106,7 +17173,7 @@ let DefaultCanvasSymbolRender = class extends BaseRender {
|
|
|
17106
17173
|
this._draw(symbol, symbolAttribute, !1, drawContext, params);
|
|
17107
17174
|
}
|
|
17108
17175
|
};
|
|
17109
|
-
DefaultCanvasSymbolRender = __decorate$
|
|
17176
|
+
DefaultCanvasSymbolRender = __decorate$1u([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(SymbolRenderContribution)), __metadata$17("design:paramtypes", [Object])], DefaultCanvasSymbolRender);
|
|
17110
17177
|
|
|
17111
17178
|
class DefaultBoundsAllocate {
|
|
17112
17179
|
constructor() {
|
|
@@ -17195,17 +17262,17 @@ class DefaultTextBackgroundRenderContribution extends DefaultBaseBackgroundRende
|
|
|
17195
17262
|
}
|
|
17196
17263
|
const defaultTextBackgroundRenderContribution = new DefaultTextBackgroundRenderContribution();
|
|
17197
17264
|
|
|
17198
|
-
var __decorate$
|
|
17265
|
+
var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17199
17266
|
var d,
|
|
17200
17267
|
c = arguments.length,
|
|
17201
17268
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17202
17269
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17203
17270
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17204
17271
|
},
|
|
17205
|
-
__metadata$
|
|
17272
|
+
__metadata$16 = undefined && undefined.__metadata || function (k, v) {
|
|
17206
17273
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17207
17274
|
},
|
|
17208
|
-
__param$
|
|
17275
|
+
__param$K = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17209
17276
|
return function (target, key) {
|
|
17210
17277
|
decorator(target, key, paramIndex);
|
|
17211
17278
|
};
|
|
@@ -17344,9 +17411,9 @@ let DefaultCanvasTextRender = class extends BaseRender {
|
|
|
17344
17411
|
}
|
|
17345
17412
|
}
|
|
17346
17413
|
};
|
|
17347
|
-
DefaultCanvasTextRender = __decorate$
|
|
17414
|
+
DefaultCanvasTextRender = __decorate$1t([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(TextRenderContribution)), __metadata$16("design:paramtypes", [Object])], DefaultCanvasTextRender);
|
|
17348
17415
|
|
|
17349
|
-
var __decorate$
|
|
17416
|
+
var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17350
17417
|
var d,
|
|
17351
17418
|
c = arguments.length,
|
|
17352
17419
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -17354,7 +17421,7 @@ var __decorate$1u = undefined && undefined.__decorate || function (decorators, t
|
|
|
17354
17421
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17355
17422
|
};
|
|
17356
17423
|
let AbstractGraphicRender = class {};
|
|
17357
|
-
AbstractGraphicRender = __decorate$
|
|
17424
|
+
AbstractGraphicRender = __decorate$1s([injectable()], AbstractGraphicRender);
|
|
17358
17425
|
|
|
17359
17426
|
function drawPolygon(path, points, x, y) {
|
|
17360
17427
|
path.moveTo(points[0].x + x, points[0].y + y);
|
|
@@ -17410,17 +17477,17 @@ function getProportionPoint(point, segment, length, dx, dy) {
|
|
|
17410
17477
|
const defaultPolygonTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
17411
17478
|
const defaultPolygonBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
17412
17479
|
|
|
17413
|
-
var __decorate$
|
|
17480
|
+
var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17414
17481
|
var d,
|
|
17415
17482
|
c = arguments.length,
|
|
17416
17483
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17417
17484
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17418
17485
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17419
17486
|
},
|
|
17420
|
-
__metadata$
|
|
17487
|
+
__metadata$15 = undefined && undefined.__metadata || function (k, v) {
|
|
17421
17488
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17422
17489
|
},
|
|
17423
|
-
__param$
|
|
17490
|
+
__param$J = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17424
17491
|
return function (target, key) {
|
|
17425
17492
|
decorator(target, key, paramIndex);
|
|
17426
17493
|
};
|
|
@@ -17461,19 +17528,19 @@ let DefaultCanvasPolygonRender = class extends BaseRender {
|
|
|
17461
17528
|
this._draw(polygon, polygonAttribute, !1, drawContext, params);
|
|
17462
17529
|
}
|
|
17463
17530
|
};
|
|
17464
|
-
DefaultCanvasPolygonRender = __decorate$
|
|
17531
|
+
DefaultCanvasPolygonRender = __decorate$1r([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(PolygonRenderContribution)), __metadata$15("design:paramtypes", [Object])], DefaultCanvasPolygonRender);
|
|
17465
17532
|
|
|
17466
|
-
var __decorate$
|
|
17533
|
+
var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17467
17534
|
var d,
|
|
17468
17535
|
c = arguments.length,
|
|
17469
17536
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17470
17537
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17471
17538
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17472
17539
|
},
|
|
17473
|
-
__metadata$
|
|
17540
|
+
__metadata$14 = undefined && undefined.__metadata || function (k, v) {
|
|
17474
17541
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17475
17542
|
},
|
|
17476
|
-
__param$
|
|
17543
|
+
__param$I = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17477
17544
|
return function (target, key) {
|
|
17478
17545
|
decorator(target, key, paramIndex);
|
|
17479
17546
|
};
|
|
@@ -17568,19 +17635,19 @@ let DefaultCanvasGroupRender = class {
|
|
|
17568
17635
|
}) : clip ? context.restore() : context.highPerformanceRestore();
|
|
17569
17636
|
}
|
|
17570
17637
|
};
|
|
17571
|
-
DefaultCanvasGroupRender = __decorate$
|
|
17638
|
+
DefaultCanvasGroupRender = __decorate$1q([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(GroupRenderContribution)), __metadata$14("design:paramtypes", [Object])], DefaultCanvasGroupRender);
|
|
17572
17639
|
|
|
17573
|
-
var __decorate$
|
|
17640
|
+
var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17574
17641
|
var d,
|
|
17575
17642
|
c = arguments.length,
|
|
17576
17643
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17577
17644
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17578
17645
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17579
17646
|
},
|
|
17580
|
-
__metadata$
|
|
17647
|
+
__metadata$13 = undefined && undefined.__metadata || function (k, v) {
|
|
17581
17648
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17582
17649
|
},
|
|
17583
|
-
__param$
|
|
17650
|
+
__param$H = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17584
17651
|
return function (target, key) {
|
|
17585
17652
|
decorator(target, key, paramIndex);
|
|
17586
17653
|
};
|
|
@@ -17648,7 +17715,7 @@ let DefaultCanvasImageRender = class extends BaseRender {
|
|
|
17648
17715
|
this._draw(image, imageAttribute, !1, drawContext);
|
|
17649
17716
|
}
|
|
17650
17717
|
};
|
|
17651
|
-
DefaultCanvasImageRender = __decorate$
|
|
17718
|
+
DefaultCanvasImageRender = __decorate$1p([injectable(), __param$H(0, inject(ContributionProvider)), __param$H(0, named(ImageRenderContribution)), __metadata$13("design:paramtypes", [Object])], DefaultCanvasImageRender);
|
|
17652
17719
|
|
|
17653
17720
|
const IncrementalDrawContribution = Symbol.for("IncrementalDrawContribution");
|
|
17654
17721
|
const ArcRender = Symbol.for("ArcRender");
|
|
@@ -17716,14 +17783,14 @@ const draw3dItem = (context, graphic, callback, output) => {
|
|
|
17716
17783
|
return result;
|
|
17717
17784
|
};
|
|
17718
17785
|
|
|
17719
|
-
var __decorate$
|
|
17786
|
+
var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17720
17787
|
var d,
|
|
17721
17788
|
c = arguments.length,
|
|
17722
17789
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17723
17790
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17724
17791
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17725
17792
|
},
|
|
17726
|
-
__metadata$
|
|
17793
|
+
__metadata$12 = undefined && undefined.__metadata || function (k, v) {
|
|
17727
17794
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17728
17795
|
};
|
|
17729
17796
|
const DrawItemInterceptor = Symbol.for("DrawItemInterceptor");
|
|
@@ -17783,7 +17850,7 @@ let CommonDrawItemInterceptorContribution = class {
|
|
|
17783
17850
|
return !1;
|
|
17784
17851
|
}
|
|
17785
17852
|
};
|
|
17786
|
-
CommonDrawItemInterceptorContribution = __decorate$
|
|
17853
|
+
CommonDrawItemInterceptorContribution = __decorate$1o([injectable(), __metadata$12("design:paramtypes", [])], CommonDrawItemInterceptorContribution);
|
|
17787
17854
|
class InteractiveDrawItemInterceptorContribution {
|
|
17788
17855
|
constructor() {
|
|
17789
17856
|
this.order = 1;
|
|
@@ -17874,17 +17941,17 @@ class Canvas3DDrawItemInterceptor {
|
|
|
17874
17941
|
}
|
|
17875
17942
|
}
|
|
17876
17943
|
|
|
17877
|
-
var __decorate$
|
|
17944
|
+
var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17878
17945
|
var d,
|
|
17879
17946
|
c = arguments.length,
|
|
17880
17947
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17881
17948
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17882
17949
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17883
17950
|
},
|
|
17884
|
-
__metadata$
|
|
17951
|
+
__metadata$11 = undefined && undefined.__metadata || function (k, v) {
|
|
17885
17952
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17886
17953
|
},
|
|
17887
|
-
__param$
|
|
17954
|
+
__param$G = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17888
17955
|
return function (target, key) {
|
|
17889
17956
|
decorator(target, key, paramIndex);
|
|
17890
17957
|
};
|
|
@@ -17922,7 +17989,7 @@ let DefaultRenderService = class {
|
|
|
17922
17989
|
this.prepare(updateBounds), this.prepareRenderList(), this.beforeDraw(params), this.draw(params), this.afterDraw(params), this.drawParams = null;
|
|
17923
17990
|
}
|
|
17924
17991
|
};
|
|
17925
|
-
DefaultRenderService = __decorate$
|
|
17992
|
+
DefaultRenderService = __decorate$1n([injectable(), __param$G(0, inject(DrawContribution)), __metadata$11("design:paramtypes", [Object])], DefaultRenderService);
|
|
17926
17993
|
|
|
17927
17994
|
var renderModule$1 = new ContainerModule(bind => {
|
|
17928
17995
|
bind(RenderService).to(DefaultRenderService);
|
|
@@ -17935,7 +18002,7 @@ const GlobalPickerService = Symbol.for("GlobalPickerService");
|
|
|
17935
18002
|
const PickItemInterceptor = Symbol.for("PickItemInterceptor");
|
|
17936
18003
|
const PickServiceInterceptor = Symbol.for("PickServiceInterceptor");
|
|
17937
18004
|
|
|
17938
|
-
var __decorate$
|
|
18005
|
+
var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17939
18006
|
var d,
|
|
17940
18007
|
c = arguments.length,
|
|
17941
18008
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -17957,7 +18024,7 @@ let ShadowPickServiceInterceptorContribution = class {
|
|
|
17957
18024
|
return result;
|
|
17958
18025
|
}
|
|
17959
18026
|
};
|
|
17960
|
-
ShadowPickServiceInterceptorContribution = __decorate$
|
|
18027
|
+
ShadowPickServiceInterceptorContribution = __decorate$1m([injectable()], ShadowPickServiceInterceptorContribution);
|
|
17961
18028
|
let ShadowRootPickItemInterceptorContribution = class {
|
|
17962
18029
|
constructor() {
|
|
17963
18030
|
this.order = 1;
|
|
@@ -17988,7 +18055,7 @@ let ShadowRootPickItemInterceptorContribution = class {
|
|
|
17988
18055
|
return context.highPerformanceRestore(), !result.graphic && result.group && "full" === shadowPickMode && (result.graphic = result.group), result;
|
|
17989
18056
|
}
|
|
17990
18057
|
};
|
|
17991
|
-
ShadowRootPickItemInterceptorContribution = __decorate$
|
|
18058
|
+
ShadowRootPickItemInterceptorContribution = __decorate$1m([injectable()], ShadowRootPickItemInterceptorContribution);
|
|
17992
18059
|
let InteractivePickItemInterceptorContribution = class {
|
|
17993
18060
|
constructor() {
|
|
17994
18061
|
this.order = 1;
|
|
@@ -18007,7 +18074,7 @@ let InteractivePickItemInterceptorContribution = class {
|
|
|
18007
18074
|
return null;
|
|
18008
18075
|
}
|
|
18009
18076
|
};
|
|
18010
|
-
InteractivePickItemInterceptorContribution = __decorate$
|
|
18077
|
+
InteractivePickItemInterceptorContribution = __decorate$1m([injectable()], InteractivePickItemInterceptorContribution);
|
|
18011
18078
|
let Canvas3DPickItemInterceptor = class {
|
|
18012
18079
|
constructor() {
|
|
18013
18080
|
this.order = 1;
|
|
@@ -18027,7 +18094,7 @@ let Canvas3DPickItemInterceptor = class {
|
|
|
18027
18094
|
context.setTransformForCurrent();
|
|
18028
18095
|
}
|
|
18029
18096
|
};
|
|
18030
|
-
Canvas3DPickItemInterceptor = __decorate$
|
|
18097
|
+
Canvas3DPickItemInterceptor = __decorate$1m([injectable()], Canvas3DPickItemInterceptor);
|
|
18031
18098
|
|
|
18032
18099
|
var pickModule = new ContainerModule((bind, unbind, isBound) => {
|
|
18033
18100
|
isBound(PickerService) || (bind(GlobalPickerService).toSelf(), bind(PickerService).toService(GlobalPickerService)), bind(Canvas3DPickItemInterceptor).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(Canvas3DPickItemInterceptor), bind(ShadowRootPickItemInterceptorContribution).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(ShadowRootPickItemInterceptorContribution), bind(InteractivePickItemInterceptorContribution).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(InteractivePickItemInterceptorContribution), bindContributionProvider(bind, PickItemInterceptor), bind(ShadowPickServiceInterceptorContribution).toSelf().inSingletonScope(), bind(PickServiceInterceptor).toService(ShadowPickServiceInterceptorContribution), bindContributionProvider(bind, PickServiceInterceptor);
|
|
@@ -18040,17 +18107,17 @@ var graphicModule = new ContainerModule(bind => {
|
|
|
18040
18107
|
const AutoEnablePlugins = Symbol.for("AutoEnablePlugins");
|
|
18041
18108
|
const PluginService = Symbol.for("PluginService");
|
|
18042
18109
|
|
|
18043
|
-
var __decorate$
|
|
18110
|
+
var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18044
18111
|
var d,
|
|
18045
18112
|
c = arguments.length,
|
|
18046
18113
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
18047
18114
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
18048
18115
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18049
18116
|
},
|
|
18050
|
-
__metadata$
|
|
18117
|
+
__metadata$10 = undefined && undefined.__metadata || function (k, v) {
|
|
18051
18118
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
18052
18119
|
},
|
|
18053
|
-
__param$
|
|
18120
|
+
__param$F = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
18054
18121
|
return function (target, key) {
|
|
18055
18122
|
decorator(target, key, paramIndex);
|
|
18056
18123
|
};
|
|
@@ -18090,7 +18157,7 @@ let DefaultPluginService = class {
|
|
|
18090
18157
|
}), this.onRegisterPlugin = [];
|
|
18091
18158
|
}
|
|
18092
18159
|
};
|
|
18093
|
-
DefaultPluginService = __decorate$
|
|
18160
|
+
DefaultPluginService = __decorate$1l([injectable(), __param$F(0, inject(ContributionProvider)), __param$F(0, named(AutoEnablePlugins)), __metadata$10("design:paramtypes", [Object])], DefaultPluginService);
|
|
18094
18161
|
|
|
18095
18162
|
var pluginModule = new ContainerModule(bind => {
|
|
18096
18163
|
bind(PluginService).to(DefaultPluginService), bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
|
|
@@ -18104,14 +18171,14 @@ var textMeasureModules = new ContainerModule(bind => {
|
|
|
18104
18171
|
bind(TextMeasureContribution).to(DefaultTextMeasureContribution).inSingletonScope(), bindContributionProvider(bind, TextMeasureContribution);
|
|
18105
18172
|
});
|
|
18106
18173
|
|
|
18107
|
-
var __decorate$
|
|
18174
|
+
var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18108
18175
|
var d,
|
|
18109
18176
|
c = arguments.length,
|
|
18110
18177
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
18111
18178
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
18112
18179
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18113
18180
|
},
|
|
18114
|
-
__metadata
|
|
18181
|
+
__metadata$$ = undefined && undefined.__metadata || function (k, v) {
|
|
18115
18182
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
18116
18183
|
};
|
|
18117
18184
|
let CanvasLayerHandlerContribution = class {
|
|
@@ -18181,7 +18248,7 @@ let CanvasLayerHandlerContribution = class {
|
|
|
18181
18248
|
this.canvas.release();
|
|
18182
18249
|
}
|
|
18183
18250
|
};
|
|
18184
|
-
CanvasLayerHandlerContribution = __decorate$
|
|
18251
|
+
CanvasLayerHandlerContribution = __decorate$1k([injectable(), __metadata$$("design:paramtypes", [])], CanvasLayerHandlerContribution);
|
|
18185
18252
|
|
|
18186
18253
|
var layerHandlerModules = new ContainerModule(bind => {
|
|
18187
18254
|
bind(CanvasLayerHandlerContribution).toSelf(), bind(StaticLayerHandlerContribution).toService(CanvasLayerHandlerContribution);
|
|
@@ -18300,17 +18367,17 @@ function findNextGraphic(graphic, id, defaultZIndex) {
|
|
|
18300
18367
|
return result;
|
|
18301
18368
|
}
|
|
18302
18369
|
|
|
18303
|
-
var __decorate$
|
|
18370
|
+
var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18304
18371
|
var d,
|
|
18305
18372
|
c = arguments.length,
|
|
18306
18373
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
18307
18374
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
18308
18375
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18309
18376
|
},
|
|
18310
|
-
__metadata
|
|
18377
|
+
__metadata$_ = undefined && undefined.__metadata || function (k, v) {
|
|
18311
18378
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
18312
18379
|
},
|
|
18313
|
-
__param$
|
|
18380
|
+
__param$E = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
18314
18381
|
return function (target, key) {
|
|
18315
18382
|
decorator(target, key, paramIndex);
|
|
18316
18383
|
};
|
|
@@ -18368,7 +18435,7 @@ let DefaultDrawContribution = class {
|
|
|
18368
18435
|
renderGroup(group, drawContext, parentMatrix, skipSort) {
|
|
18369
18436
|
if (drawContext.break || !1 === group.attribute.visibleAll) return;
|
|
18370
18437
|
if (group.incremental && (null == drawContext.startAtId || drawContext.startAtId === group._uid)) return drawContext.break = !0, void this._increaseRender(group, drawContext);
|
|
18371
|
-
if (this.useDirtyBounds && !isRectIntersect(group.AABBBounds, this.dirtyBounds, !1)) return;
|
|
18438
|
+
if (this.useDirtyBounds && !isRectIntersect(group.AABBBounds, this.dirtyBounds, !1) && "empty" !== group.attribute.boundsMode) return;
|
|
18372
18439
|
let tempBounds,
|
|
18373
18440
|
nextM = parentMatrix;
|
|
18374
18441
|
if (this.useDirtyBounds) {
|
|
@@ -18449,7 +18516,7 @@ let DefaultDrawContribution = class {
|
|
|
18449
18516
|
} = graphic.parent.attribute;
|
|
18450
18517
|
(scrollX || scrollY) && (retrans = !0, this.scrollMatrix || (this.scrollMatrix = matrixAllocate.allocate(1, 0, 0, 1, 0, 0)), this.scrollMatrix.translate(-scrollX, -scrollY));
|
|
18451
18518
|
}
|
|
18452
|
-
if (retrans && (tempBounds = this.dirtyBounds.clone().transformWithMatrix(this.scrollMatrix)), this.useDirtyBounds && !graphic.isContainer && !isRectIntersect(graphic.AABBBounds, null != tempBounds ? tempBounds : this.dirtyBounds, !1)) {
|
|
18519
|
+
if (retrans && (tempBounds = this.dirtyBounds.clone().transformWithMatrix(this.scrollMatrix)), this.useDirtyBounds && !graphic.isContainer && "empty" !== graphic.attribute.boundsMode && !isRectIntersect(graphic.AABBBounds, null != tempBounds ? tempBounds : this.dirtyBounds, !1)) {
|
|
18453
18520
|
if (retrans && graphic.parent) {
|
|
18454
18521
|
const {
|
|
18455
18522
|
scrollX = 0,
|
|
@@ -18509,9 +18576,9 @@ let DefaultDrawContribution = class {
|
|
|
18509
18576
|
}
|
|
18510
18577
|
afterDraw(renderService, drawParams) {}
|
|
18511
18578
|
};
|
|
18512
|
-
DefaultDrawContribution = __decorate$
|
|
18579
|
+
DefaultDrawContribution = __decorate$1j([injectable(), __param$E(0, multiInject(GraphicRender)), __param$E(1, inject(ContributionProvider)), __param$E(1, named(DrawItemInterceptor)), __metadata$_("design:paramtypes", [Array, Object])], DefaultDrawContribution);
|
|
18513
18580
|
|
|
18514
|
-
var __decorate$
|
|
18581
|
+
var __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18515
18582
|
var d,
|
|
18516
18583
|
c = arguments.length,
|
|
18517
18584
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18562,9 +18629,9 @@ let DefaultIncrementalCanvasLineRender = class extends DefaultCanvasLineRender {
|
|
|
18562
18629
|
}), context.setShadowBlendStyle && context.setShadowBlendStyle(line, attribute, defaultAttribute), context.setStrokeStyle(line, attribute, offsetX, offsetY, defaultAttribute), context.stroke());
|
|
18563
18630
|
}
|
|
18564
18631
|
};
|
|
18565
|
-
DefaultIncrementalCanvasLineRender = __decorate$
|
|
18632
|
+
DefaultIncrementalCanvasLineRender = __decorate$1i([injectable()], DefaultIncrementalCanvasLineRender);
|
|
18566
18633
|
|
|
18567
|
-
var __decorate$
|
|
18634
|
+
var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18568
18635
|
var d,
|
|
18569
18636
|
c = arguments.length,
|
|
18570
18637
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -18607,20 +18674,20 @@ let DefaultIncrementalCanvasAreaRender = class extends DefaultCanvasAreaRender {
|
|
|
18607
18674
|
}), context.setShadowBlendStyle && context.setShadowBlendStyle(area, attribute, defaultAttribute), context.setCommonStyle(area, attribute, offsetX, offsetY, defaultAttribute), context.fill());
|
|
18608
18675
|
}
|
|
18609
18676
|
};
|
|
18610
|
-
DefaultIncrementalCanvasAreaRender = __decorate$
|
|
18677
|
+
DefaultIncrementalCanvasAreaRender = __decorate$1h([injectable()], DefaultIncrementalCanvasAreaRender);
|
|
18611
18678
|
|
|
18612
18679
|
var STATUS,
|
|
18613
|
-
__decorate$
|
|
18680
|
+
__decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18614
18681
|
var d,
|
|
18615
18682
|
c = arguments.length,
|
|
18616
18683
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
18617
18684
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
18618
18685
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18619
18686
|
},
|
|
18620
|
-
__metadata$
|
|
18687
|
+
__metadata$Z = undefined && undefined.__metadata || function (k, v) {
|
|
18621
18688
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
18622
18689
|
},
|
|
18623
|
-
__param$
|
|
18690
|
+
__param$D = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
18624
18691
|
return function (target, key) {
|
|
18625
18692
|
decorator(target, key, paramIndex);
|
|
18626
18693
|
};
|
|
@@ -18750,7 +18817,7 @@ let DefaultIncrementalDrawContribution = class extends DefaultDrawContribution {
|
|
|
18750
18817
|
});
|
|
18751
18818
|
}
|
|
18752
18819
|
};
|
|
18753
|
-
DefaultIncrementalDrawContribution = __decorate$
|
|
18820
|
+
DefaultIncrementalDrawContribution = __decorate$1g([injectable(), __param$D(0, multiInject(GraphicRender)), __param$D(1, inject(DefaultIncrementalCanvasLineRender)), __param$D(2, inject(DefaultIncrementalCanvasAreaRender)), __param$D(3, inject(ContributionProvider)), __param$D(3, named(DrawItemInterceptor)), __metadata$Z("design:paramtypes", [Array, Object, Object, Object])], DefaultIncrementalDrawContribution);
|
|
18754
18821
|
|
|
18755
18822
|
var renderModule = new ContainerModule(bind => {
|
|
18756
18823
|
bind(DefaultBaseBackgroundRenderContribution).toSelf().inSingletonScope(), bind(DefaultBaseTextureRenderContribution).toSelf().inSingletonScope(), bind(DrawContribution).to(DefaultDrawContribution), bind(IncrementalDrawContribution).to(DefaultIncrementalDrawContribution), bind(GroupRender).to(DefaultCanvasGroupRender).inSingletonScope(), bind(GraphicRender).toService(GroupRender), bindContributionProvider(bind, GroupRenderContribution), bind(DefaultBaseInteractiveRenderContribution).toSelf().inSingletonScope(), bindContributionProvider(bind, InteractiveSubRenderContribution), bindContributionProvider(bind, GraphicRender), bind(CommonDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(CommonDrawItemInterceptorContribution), bindContributionProvider(bind, DrawItemInterceptor);
|
|
@@ -19446,14 +19513,14 @@ function createStage(params) {
|
|
|
19446
19513
|
return new Stage(params);
|
|
19447
19514
|
}
|
|
19448
19515
|
|
|
19449
|
-
var __decorate$
|
|
19516
|
+
var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19450
19517
|
var d,
|
|
19451
19518
|
c = arguments.length,
|
|
19452
19519
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
19453
19520
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
19454
19521
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19455
19522
|
},
|
|
19456
|
-
__metadata$
|
|
19523
|
+
__metadata$Y = undefined && undefined.__metadata || function (k, v) {
|
|
19457
19524
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
19458
19525
|
};
|
|
19459
19526
|
const initMatrix = new Matrix(1, 0, 0, 1, 0, 0),
|
|
@@ -19663,7 +19730,7 @@ let EmptyContext2d = class {
|
|
|
19663
19730
|
this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
|
|
19664
19731
|
}
|
|
19665
19732
|
};
|
|
19666
|
-
EmptyContext2d = __decorate$
|
|
19733
|
+
EmptyContext2d = __decorate$1f([injectable(), __metadata$Y("design:paramtypes", [Object, Number])], EmptyContext2d);
|
|
19667
19734
|
|
|
19668
19735
|
const DefaultConfig = {
|
|
19669
19736
|
WIDTH: 500,
|
|
@@ -19762,7 +19829,7 @@ class BaseCanvas {
|
|
|
19762
19829
|
}
|
|
19763
19830
|
BaseCanvas.env = "browser";
|
|
19764
19831
|
|
|
19765
|
-
var __decorate$
|
|
19832
|
+
var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19766
19833
|
var d,
|
|
19767
19834
|
c = arguments.length,
|
|
19768
19835
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19876,16 +19943,16 @@ let BaseEnvContribution = class {
|
|
|
19876
19943
|
return Promise.resolve(null);
|
|
19877
19944
|
}
|
|
19878
19945
|
};
|
|
19879
|
-
BaseEnvContribution = __decorate$
|
|
19946
|
+
BaseEnvContribution = __decorate$1e([injectable()], BaseEnvContribution);
|
|
19880
19947
|
|
|
19881
|
-
var __decorate$
|
|
19948
|
+
var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19882
19949
|
var d,
|
|
19883
19950
|
c = arguments.length,
|
|
19884
19951
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
19885
19952
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
19886
19953
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19887
19954
|
},
|
|
19888
|
-
__metadata$
|
|
19955
|
+
__metadata$X = undefined && undefined.__metadata || function (k, v) {
|
|
19889
19956
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
19890
19957
|
};
|
|
19891
19958
|
let BaseWindowHandlerContribution = class {
|
|
@@ -19924,7 +19991,7 @@ let BaseWindowHandlerContribution = class {
|
|
|
19924
19991
|
return this.modelMatrix;
|
|
19925
19992
|
}
|
|
19926
19993
|
};
|
|
19927
|
-
BaseWindowHandlerContribution = __decorate$
|
|
19994
|
+
BaseWindowHandlerContribution = __decorate$1d([injectable(), __metadata$X("design:paramtypes", [])], BaseWindowHandlerContribution);
|
|
19928
19995
|
|
|
19929
19996
|
class DirectionalLight {
|
|
19930
19997
|
constructor(dir, color) {
|
|
@@ -20015,17 +20082,17 @@ const registerOrthoCamera = () => {
|
|
|
20015
20082
|
Factory.registerPlugin("OrthoCamera", OrthoCamera);
|
|
20016
20083
|
};
|
|
20017
20084
|
|
|
20018
|
-
var __decorate$
|
|
20085
|
+
var __decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20019
20086
|
var d,
|
|
20020
20087
|
c = arguments.length,
|
|
20021
20088
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20022
20089
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
20023
20090
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20024
20091
|
},
|
|
20025
|
-
__metadata$
|
|
20092
|
+
__metadata$W = undefined && undefined.__metadata || function (k, v) {
|
|
20026
20093
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
20027
20094
|
},
|
|
20028
|
-
__param$
|
|
20095
|
+
__param$C = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
20029
20096
|
return function (target, key) {
|
|
20030
20097
|
decorator(target, key, paramIndex);
|
|
20031
20098
|
};
|
|
@@ -20130,16 +20197,16 @@ let DefaultPickService = class {
|
|
|
20130
20197
|
return picker || null;
|
|
20131
20198
|
}
|
|
20132
20199
|
};
|
|
20133
|
-
DefaultPickService = __decorate$
|
|
20200
|
+
DefaultPickService = __decorate$1c([injectable(), __param$C(0, inject(ContributionProvider)), __param$C(0, named(PickItemInterceptor)), __param$C(1, inject(ContributionProvider)), __param$C(1, named(PickServiceInterceptor)), __metadata$W("design:paramtypes", [Object, Object])], DefaultPickService);
|
|
20134
20201
|
|
|
20135
|
-
var __decorate$
|
|
20202
|
+
var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20136
20203
|
var d,
|
|
20137
20204
|
c = arguments.length,
|
|
20138
20205
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20139
20206
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
20140
20207
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20141
20208
|
},
|
|
20142
|
-
__metadata$
|
|
20209
|
+
__metadata$V = undefined && undefined.__metadata || function (k, v) {
|
|
20143
20210
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
20144
20211
|
};
|
|
20145
20212
|
let DefaultGlobalPickerService = class {
|
|
@@ -20204,7 +20271,7 @@ let DefaultGlobalPickerService = class {
|
|
|
20204
20271
|
} : null;
|
|
20205
20272
|
}
|
|
20206
20273
|
};
|
|
20207
|
-
DefaultGlobalPickerService = __decorate$
|
|
20274
|
+
DefaultGlobalPickerService = __decorate$1b([injectable(), __metadata$V("design:paramtypes", [])], DefaultGlobalPickerService);
|
|
20208
20275
|
|
|
20209
20276
|
function simplifyRadialDist(points, sqTolerance) {
|
|
20210
20277
|
let deltaX,
|
|
@@ -20229,6 +20296,24 @@ var __rest$1 = undefined && undefined.__rest || function (s, e) {
|
|
|
20229
20296
|
}
|
|
20230
20297
|
return t;
|
|
20231
20298
|
};
|
|
20299
|
+
function getDefaultCharacterConfig(attribute) {
|
|
20300
|
+
const {
|
|
20301
|
+
fill = "black",
|
|
20302
|
+
stroke = !1,
|
|
20303
|
+
fontWeight = "normal",
|
|
20304
|
+
fontFamily = "Arial"
|
|
20305
|
+
} = attribute;
|
|
20306
|
+
let {
|
|
20307
|
+
fontSize = 12
|
|
20308
|
+
} = attribute;
|
|
20309
|
+
return isFinite(fontSize) || (fontSize = 12), {
|
|
20310
|
+
fill: fill,
|
|
20311
|
+
stroke: stroke,
|
|
20312
|
+
fontSize: fontSize,
|
|
20313
|
+
fontWeight: fontWeight,
|
|
20314
|
+
fontFamily: fontFamily
|
|
20315
|
+
};
|
|
20316
|
+
}
|
|
20232
20317
|
function findConfigIndexByCursorIdx(textConfig, cursorIndex) {
|
|
20233
20318
|
if (cursorIndex < 0) return 0;
|
|
20234
20319
|
const intCursorIndex = Math.round(cursorIndex);
|
|
@@ -20267,9 +20352,7 @@ class EditModule {
|
|
|
20267
20352
|
} = this.currRt.attribute;
|
|
20268
20353
|
if (this.composingConfigIdx = this.cursorIndex < 0 ? 0 : findConfigIndexByCursorIdx(textConfig, this.cursorIndex), this.cursorIndex < 0) {
|
|
20269
20354
|
const config = textConfig[0];
|
|
20270
|
-
textConfig.unshift(Object.assign(Object.assign({
|
|
20271
|
-
fill: "black"
|
|
20272
|
-
}, config), {
|
|
20355
|
+
textConfig.unshift(Object.assign(Object.assign(Object.assign({}, getDefaultCharacterConfig(this.currRt.attribute)), config), {
|
|
20273
20356
|
text: ""
|
|
20274
20357
|
}));
|
|
20275
20358
|
} else {
|
|
@@ -20286,26 +20369,20 @@ class EditModule {
|
|
|
20286
20369
|
cb(text, this.isComposing, this.cursorIndex, this.currRt);
|
|
20287
20370
|
});
|
|
20288
20371
|
}, this.handleInput = ev => {
|
|
20289
|
-
var _a, _b, _c, _d;
|
|
20290
20372
|
if (!this.currRt) return;
|
|
20291
20373
|
if ("historyUndo" === ev.inputType) return;
|
|
20292
|
-
const
|
|
20374
|
+
const _a = this.currRt.attribute,
|
|
20293
20375
|
{
|
|
20294
20376
|
textConfig = []
|
|
20295
|
-
} =
|
|
20296
|
-
rest = __rest$1(
|
|
20377
|
+
} = _a,
|
|
20378
|
+
rest = __rest$1(_a, ["textConfig"]);
|
|
20297
20379
|
if ("Backspace" === ev.type && !textConfig.length) return;
|
|
20298
20380
|
let str = ev.data;
|
|
20299
20381
|
this.isComposing || "Backspace" === ev.type || str || (str = "\n"), this.selectionStartCursorIdx > this.cursorIndex && ([this.cursorIndex, this.selectionStartCursorIdx] = [this.selectionStartCursorIdx, this.cursorIndex]);
|
|
20300
20382
|
const startIdx = findConfigIndexByCursorIdx(textConfig, this.selectionStartCursorIdx),
|
|
20301
20383
|
endIdx = findConfigIndexByCursorIdx(textConfig, this.cursorIndex);
|
|
20302
20384
|
let lastConfig = textConfig[this.isComposing ? this.composingConfigIdx : Math.max(startIdx - 1, 0)];
|
|
20303
|
-
lastConfig || (lastConfig =
|
|
20304
|
-
fill: null !== (_a = rest.fill) && void 0 !== _a ? _a : "black",
|
|
20305
|
-
stroke: null !== (_b = rest.stroke) && void 0 !== _b && _b,
|
|
20306
|
-
fontSize: null !== (_c = rest.fontSize) && void 0 !== _c ? _c : 12,
|
|
20307
|
-
fontWeight: null !== (_d = rest.fontWeight) && void 0 !== _d ? _d : "normal"
|
|
20308
|
-
});
|
|
20385
|
+
lastConfig || (lastConfig = getDefaultCharacterConfig(rest));
|
|
20309
20386
|
let nextConfig = lastConfig;
|
|
20310
20387
|
startIdx !== endIdx && (textConfig.splice(startIdx, endIdx - startIdx), this.isComposing && (this.composingConfigIdx = startIdx));
|
|
20311
20388
|
let nextConfigIdx = startIdx;
|
|
@@ -20353,9 +20430,9 @@ class EditModule {
|
|
|
20353
20430
|
textConfig.splice(configIdx, 1);
|
|
20354
20431
|
const text = lastConfig.text,
|
|
20355
20432
|
textList = text ? Array.from(text.toString()) : [];
|
|
20356
|
-
for (let i = 0; i < textList.length; i++) textConfig.splice(i + configIdx, 0, Object.assign(Object.assign({
|
|
20433
|
+
for (let i = 0; i < textList.length; i++) textConfig.splice(i + configIdx, 0, Object.assign(Object.assign(Object.assign(Object.assign({}, getDefaultCharacterConfig(this.currRt.attribute)), {
|
|
20357
20434
|
fill: "black"
|
|
20358
|
-
}, lastConfig), {
|
|
20435
|
+
}), lastConfig), {
|
|
20359
20436
|
isComposing: !1,
|
|
20360
20437
|
text: textList[i]
|
|
20361
20438
|
}));
|
|
@@ -20401,6 +20478,7 @@ class Selection {
|
|
|
20401
20478
|
if (!this.rt) return null;
|
|
20402
20479
|
let idx = Math.round(cursorIdx);
|
|
20403
20480
|
const config = this.rt.attribute.textConfig;
|
|
20481
|
+
if (!config.length) return null;
|
|
20404
20482
|
for (let i = 0; i < config.length; i++) if ("\n" !== config[i].text && (idx--, idx < 0)) return config[i][key];
|
|
20405
20483
|
return null !== (_a = config[Math.min(idx, config.length - 1)][key]) && void 0 !== _a ? _a : this.rt.attribute[key];
|
|
20406
20484
|
}
|
|
@@ -20420,6 +20498,7 @@ class Selection {
|
|
|
20420
20498
|
}
|
|
20421
20499
|
}
|
|
20422
20500
|
const FORMAT_TEXT_COMMAND = "FORMAT_TEXT_COMMAND";
|
|
20501
|
+
const FORMAT_ALL_TEXT_COMMAND = "FORMAT_ALL_TEXT_COMMAND";
|
|
20423
20502
|
const FORMAT_ELEMENT_COMMAND = "FORMAT_ELEMENT_COMMAND";
|
|
20424
20503
|
class RichTextEditPlugin {
|
|
20425
20504
|
static tryUpdateRichtext(richtext) {
|
|
@@ -20439,45 +20518,57 @@ class RichTextEditPlugin {
|
|
|
20439
20518
|
return new Selection(0, textConfig.length - 1, rt);
|
|
20440
20519
|
}
|
|
20441
20520
|
constructor() {
|
|
20442
|
-
this.name = "RichTextEditPlugin", this.activeEvent = "onRegister", this._uid = Generator.GenAutoIncrementId(), this.key = this.name + this._uid, this.editing = !1, this.pointerDown = !1, this.
|
|
20521
|
+
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) => {
|
|
20522
|
+
const rt = p.currRt;
|
|
20523
|
+
if (!rt) return;
|
|
20524
|
+
const selectionData = p.getSelection();
|
|
20525
|
+
if (!selectionData) return;
|
|
20526
|
+
const {
|
|
20527
|
+
selectionStartCursorIdx: selectionStartCursorIdx,
|
|
20528
|
+
curCursorIdx: curCursorIdx
|
|
20529
|
+
} = selectionData,
|
|
20530
|
+
minCursorIdx = Math.min(selectionStartCursorIdx, curCursorIdx),
|
|
20531
|
+
maxCursorIdx = Math.max(selectionStartCursorIdx, curCursorIdx),
|
|
20532
|
+
minConfigIdx = findConfigIndexByCursorIdx(rt.attribute.textConfig, minCursorIdx),
|
|
20533
|
+
maxConfigIdx = findConfigIndexByCursorIdx(rt.attribute.textConfig, maxCursorIdx),
|
|
20534
|
+
config = rt.attribute.textConfig.slice(minConfigIdx, maxConfigIdx);
|
|
20535
|
+
this._formatTextCommand(payload, config, rt);
|
|
20536
|
+
}, this.formatAllTextCommandCb = (payload, p) => {
|
|
20537
|
+
const rt = p.currRt;
|
|
20538
|
+
if (!rt) return;
|
|
20539
|
+
const config = rt.attribute.textConfig;
|
|
20540
|
+
this._formatTextCommand(payload, config, rt);
|
|
20541
|
+
}, this.handleKeyDown = e => {
|
|
20443
20542
|
this.currRt && this.editing && (this.copyToClipboard(e) || this.fullSelection(e) || this.directKey(e));
|
|
20444
20543
|
}, this.handleInput = (text, isComposing, cursorIdx, rt) => {
|
|
20445
|
-
this.hideSelection(), this.updateCbs.forEach(cb => cb("input", this));
|
|
20544
|
+
this.currRt && (this.tryShowShadowPlaceholder(), this.tryShowInputBounds(), this.hideSelection(), this.updateCbs.forEach(cb => cb("input", this)));
|
|
20446
20545
|
}, this.handleChange = (text, isComposing, cursorIdx, rt) => {
|
|
20447
|
-
|
|
20546
|
+
if (!this.currRt) return;
|
|
20547
|
+
this.tryShowShadowPlaceholder(), this.tryShowInputBounds(), this.curCursorIdx = cursorIdx, this.selectionStartCursorIdx = cursorIdx;
|
|
20448
20548
|
const p = this.computedCursorPosByCursorIdx(cursorIdx, rt);
|
|
20449
20549
|
this.setCursorAndTextArea(p.x, p.y1, p.y2, rt), this.hideSelection(), this.updateCbs.forEach(cb => cb("change", this));
|
|
20450
|
-
}, this.handleFocusIn = () => {
|
|
20451
|
-
|
|
20550
|
+
}, this.handleFocusIn = () => {
|
|
20551
|
+
throw new Error("不会走到这里 handleFocusIn");
|
|
20552
|
+
}, this.handleFocusOut = () => {
|
|
20553
|
+
throw new Error("不会走到这里 handleFocusOut");
|
|
20452
20554
|
}, this.handleMove = e => {
|
|
20453
|
-
this.
|
|
20454
|
-
}, this.handleEnter =
|
|
20555
|
+
this.currRt && !this.currRt.attribute.editable && this.deFocus(!0), this.isEditableRichtext(e) ? (this.handleEnter(), e.target.once("pointerleave", this.handleLeave), this.tryShowSelection(e, !1)) : this.handleLeave();
|
|
20556
|
+
}, this.handleEnter = () => {
|
|
20455
20557
|
this.editing = !0, this.pluginService.stage.setCursor("text");
|
|
20456
|
-
}, this.handleLeave =
|
|
20558
|
+
}, this.handleLeave = () => {
|
|
20457
20559
|
this.editing = !1, this.pluginService.stage.setCursor("default");
|
|
20458
20560
|
}, this.handlePointerDown = e => {
|
|
20459
|
-
this.editing ? this.onFocus(e) : this.deFocus(), this.triggerRender(), this.pointerDown = !0, this.updateCbs.forEach(cb => cb(this.editing ? "onfocus" : "defocus", this));
|
|
20561
|
+
this.editing && this.isEditableRichtext(e) ? this.onFocus(e) : this.deFocus(!0), this.triggerRender(), this.pointerDown = !0, this.updateCbs.forEach(cb => cb(this.editing ? "onfocus" : "defocus", this));
|
|
20460
20562
|
}, this.handlePointerUp = e => {
|
|
20461
20563
|
this.pointerDown = !1;
|
|
20462
20564
|
}, this.handleDBLClick = e => {
|
|
20463
20565
|
this.editing && this.tryShowSelection(e, !0);
|
|
20464
|
-
}, this.commandCbs = new Map(), this.commandCbs.set(FORMAT_TEXT_COMMAND, [this.formatTextCommandCb]), this.updateCbs = [], this.timeline = new DefaultTimeline(), this.ticker = new DefaultTicker([this.timeline]), this.deltaX = 0, this.deltaY = 0;
|
|
20566
|
+
}, this.commandCbs = new Map(), this.commandCbs.set(FORMAT_TEXT_COMMAND, [this.formatTextCommandCb]), this.commandCbs.set(FORMAT_ALL_TEXT_COMMAND, [this.formatAllTextCommandCb]), this.updateCbs = [], this.timeline = new DefaultTimeline(), this.ticker = new DefaultTicker([this.timeline]), this.deltaX = 0, this.deltaY = 0;
|
|
20465
20567
|
}
|
|
20466
|
-
|
|
20467
|
-
const rt = p.currRt;
|
|
20468
|
-
if (!rt) return;
|
|
20469
|
-
const selectionData = p.getSelection();
|
|
20470
|
-
if (!selectionData) return;
|
|
20471
|
-
const {
|
|
20472
|
-
selectionStartCursorIdx: selectionStartCursorIdx,
|
|
20473
|
-
curCursorIdx: curCursorIdx
|
|
20474
|
-
} = selectionData,
|
|
20475
|
-
minCursorIdx = Math.min(selectionStartCursorIdx, curCursorIdx),
|
|
20476
|
-
maxCursorIdx = Math.max(selectionStartCursorIdx, curCursorIdx),
|
|
20477
|
-
minConfigIdx = findConfigIndexByCursorIdx(rt.attribute.textConfig, minCursorIdx),
|
|
20478
|
-
maxConfigIdx = findConfigIndexByCursorIdx(rt.attribute.textConfig, maxCursorIdx),
|
|
20479
|
-
config = rt.attribute.textConfig.slice(minConfigIdx, maxConfigIdx);
|
|
20568
|
+
_formatTextCommand(payload, config, rt) {
|
|
20480
20569
|
"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);
|
|
20570
|
+
const cache = rt.getFrameCache();
|
|
20571
|
+
cache && (this.selectionRangeByCursorIdx(this.selectionStartCursorIdx, this.curCursorIdx, cache), this.tryShowInputBounds());
|
|
20481
20572
|
}
|
|
20482
20573
|
dispatchCommand(command, payload) {
|
|
20483
20574
|
const cbs = this.commandCbs.get(command);
|
|
@@ -20486,9 +20577,19 @@ class RichTextEditPlugin {
|
|
|
20486
20577
|
registerCommand(command, cb) {
|
|
20487
20578
|
(this.commandCbs.get(command) || []).push(cb);
|
|
20488
20579
|
}
|
|
20580
|
+
removeCommand(command, cb) {
|
|
20581
|
+
const cbs = this.commandCbs.get(command) || [],
|
|
20582
|
+
idx = cbs.indexOf(cb);
|
|
20583
|
+
idx > -1 && cbs.splice(idx, 1);
|
|
20584
|
+
}
|
|
20489
20585
|
registerUpdateListener(cb) {
|
|
20490
20586
|
(this.updateCbs || []).push(cb);
|
|
20491
20587
|
}
|
|
20588
|
+
removeUpdateListener(cb) {
|
|
20589
|
+
const cbs = this.updateCbs || [],
|
|
20590
|
+
idx = cbs.indexOf(cb);
|
|
20591
|
+
idx > -1 && cbs.splice(idx, 1);
|
|
20592
|
+
}
|
|
20492
20593
|
activate(context) {
|
|
20493
20594
|
this.pluginService = context, this.editModule = new EditModule(), context.stage.on("pointermove", this.handleMove), context.stage.on("pointerdown", this.handlePointerDown), context.stage.on("pointerup", this.handlePointerUp), context.stage.on("pointerleave", this.handlePointerUp), context.stage.on("dblclick", this.handleDBLClick), application.global.addEventListener("keydown", this.handleKeyDown), this.editModule.onInput(this.handleInput), this.editModule.onChange(this.handleChange), this.editModule.onFocusOut(this.handleFocusOut);
|
|
20494
20595
|
}
|
|
@@ -20508,7 +20609,10 @@ class RichTextEditPlugin {
|
|
|
20508
20609
|
lines: lines
|
|
20509
20610
|
} = cache,
|
|
20510
20611
|
totalCursorCount = lines.reduce((total, line) => total + line.paragraphs.length, 0) - 1;
|
|
20511
|
-
startIdx > endIdx && ([startIdx, endIdx] = [endIdx, startIdx]), startIdx = Math.min(Math.max(startIdx, -.1), totalCursorCount + .1), endIdx = Math.min(Math.max(endIdx, -.1), totalCursorCount + .1), this.
|
|
20612
|
+
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);
|
|
20613
|
+
}
|
|
20614
|
+
selectionRangeByCursorIdx(startCursorIdx, endCursorIdx, cache) {
|
|
20615
|
+
this.curCursorIdx = endCursorIdx, this.selectionStartCursorIdx = startCursorIdx;
|
|
20512
20616
|
const {
|
|
20513
20617
|
x: x,
|
|
20514
20618
|
y1: y1,
|
|
@@ -20528,9 +20632,11 @@ class RichTextEditPlugin {
|
|
|
20528
20632
|
const cache = currRt.getFrameCache();
|
|
20529
20633
|
if (!cache) return;
|
|
20530
20634
|
const {
|
|
20531
|
-
|
|
20532
|
-
|
|
20533
|
-
|
|
20635
|
+
lines: lines
|
|
20636
|
+
} = cache;
|
|
20637
|
+
if (0 === lines.length) return;
|
|
20638
|
+
if (!lines[0].paragraphs || 0 === lines[0].paragraphs.length) return;
|
|
20639
|
+
const totalCursorCount = lines.reduce((total, line) => total + line.paragraphs.length, 0) - 1;
|
|
20534
20640
|
return this.selectionRange(-.1, totalCursorCount + .1), e.preventDefault(), !0;
|
|
20535
20641
|
}
|
|
20536
20642
|
return !1;
|
|
@@ -20579,61 +20685,190 @@ class RichTextEditPlugin {
|
|
|
20579
20685
|
}
|
|
20580
20686
|
return !0;
|
|
20581
20687
|
}
|
|
20688
|
+
tryShowShadowPlaceholder() {
|
|
20689
|
+
if (!this.currRt) return;
|
|
20690
|
+
const shadowRoot = this.currRt.shadowRoot;
|
|
20691
|
+
if (shadowRoot) {
|
|
20692
|
+
const placeholder = shadowRoot.getElementsByType("richtext")[0];
|
|
20693
|
+
placeholder && shadowRoot.removeChild(placeholder);
|
|
20694
|
+
}
|
|
20695
|
+
const {
|
|
20696
|
+
textConfig: textConfig,
|
|
20697
|
+
editOptions: editOptions
|
|
20698
|
+
} = this.currRt.attribute;
|
|
20699
|
+
if (textConfig && textConfig.length) return;
|
|
20700
|
+
if (!editOptions || !editOptions.placeholder) return;
|
|
20701
|
+
const {
|
|
20702
|
+
placeholder: placeholder,
|
|
20703
|
+
placeholderColor = "rgba(0, 0, 0, 0.6)",
|
|
20704
|
+
placeholderFontFamily: placeholderFontFamily,
|
|
20705
|
+
placeholderFontSize: placeholderFontSize
|
|
20706
|
+
} = editOptions,
|
|
20707
|
+
shadow = this.getShadow(this.currRt),
|
|
20708
|
+
textConfigItem = Object.assign(Object.assign({}, getDefaultCharacterConfig(this.currRt.attribute)), {
|
|
20709
|
+
text: placeholder
|
|
20710
|
+
});
|
|
20711
|
+
placeholderColor && (textConfigItem.fill = placeholderColor), placeholderFontFamily && (textConfigItem.fontFamily = placeholderFontFamily), placeholderFontSize && (textConfigItem.fontSize = placeholderFontSize), this.shadowPlaceHolder = createRichText(Object.assign(Object.assign({}, this.currRt.attribute), {
|
|
20712
|
+
x: 0,
|
|
20713
|
+
y: 0,
|
|
20714
|
+
pickable: !1,
|
|
20715
|
+
editable: !1,
|
|
20716
|
+
editOptions: null,
|
|
20717
|
+
angle: 0,
|
|
20718
|
+
_debug_bounds: !1,
|
|
20719
|
+
textConfig: [textConfigItem]
|
|
20720
|
+
})), shadow.add(this.shadowPlaceHolder);
|
|
20721
|
+
}
|
|
20722
|
+
tryShowInputBounds() {
|
|
20723
|
+
if (!this.currRt || !this.focusing) return;
|
|
20724
|
+
const {
|
|
20725
|
+
editOptions = {}
|
|
20726
|
+
} = this.currRt.attribute,
|
|
20727
|
+
{
|
|
20728
|
+
boundsStrokeWhenInput: boundsStrokeWhenInput
|
|
20729
|
+
} = editOptions;
|
|
20730
|
+
if (!editOptions || !boundsStrokeWhenInput) return;
|
|
20731
|
+
const {
|
|
20732
|
+
attribute: attribute
|
|
20733
|
+
} = this.currRt;
|
|
20734
|
+
let b = this.currRt.AABBBounds,
|
|
20735
|
+
h = b.height();
|
|
20736
|
+
if (!attribute.textConfig.length && this.editLine) {
|
|
20737
|
+
const {
|
|
20738
|
+
points: points
|
|
20739
|
+
} = this.editLine.attribute;
|
|
20740
|
+
h = points[1].y - points[0].y, b = getRichTextBounds(Object.assign({}, this.shadowPlaceHolder.attribute));
|
|
20741
|
+
}
|
|
20742
|
+
this.shadowBounds = this.shadowBounds || createRect({}), this.shadowBounds.setAttributes({
|
|
20743
|
+
x: 0,
|
|
20744
|
+
y: 0,
|
|
20745
|
+
width: b.width(),
|
|
20746
|
+
height: h,
|
|
20747
|
+
fill: !1,
|
|
20748
|
+
stroke: boundsStrokeWhenInput,
|
|
20749
|
+
lineWidth: 1,
|
|
20750
|
+
zIndex: -1
|
|
20751
|
+
});
|
|
20752
|
+
this.getShadow(this.currRt).add(this.shadowBounds), this.offsetLineBgAndShadowBounds();
|
|
20753
|
+
}
|
|
20754
|
+
trySyncPlaceholderToTextConfig() {
|
|
20755
|
+
if (!this.currRt) return;
|
|
20756
|
+
const {
|
|
20757
|
+
textConfig: textConfig,
|
|
20758
|
+
editOptions: editOptions
|
|
20759
|
+
} = this.currRt.attribute;
|
|
20760
|
+
if (textConfig && textConfig.length) return;
|
|
20761
|
+
if (!(editOptions && editOptions.placeholder && editOptions.syncPlaceHolderToTextConfig)) return;
|
|
20762
|
+
const {
|
|
20763
|
+
placeholder: placeholder
|
|
20764
|
+
} = editOptions;
|
|
20765
|
+
this.currRt.setAttributes({
|
|
20766
|
+
textConfig: [Object.assign({
|
|
20767
|
+
text: placeholder
|
|
20768
|
+
}, getDefaultCharacterConfig(this.currRt.attribute))]
|
|
20769
|
+
});
|
|
20770
|
+
}
|
|
20582
20771
|
deactivate(context) {
|
|
20583
20772
|
context.stage.off("pointermove", this.handleMove), context.stage.off("pointerdown", this.handlePointerDown), context.stage.off("pointerup", this.handlePointerUp), context.stage.off("pointerleave", this.handlePointerUp), context.stage.off("dblclick", this.handleDBLClick), application.global.addEventListener("keydown", this.handleKeyDown);
|
|
20584
20773
|
}
|
|
20585
|
-
onFocus(e) {
|
|
20586
|
-
this.deFocus(), this.
|
|
20774
|
+
onFocus(e, data) {
|
|
20775
|
+
this.updateCbs && this.updateCbs.forEach(cb => cb("beforeOnfocus", this)), this.deFocus(!1), this.focusing = !0;
|
|
20587
20776
|
const target = e.target;
|
|
20588
|
-
|
|
20589
|
-
|
|
20777
|
+
if (!target || "richtext" !== target.type) return;
|
|
20778
|
+
this.currRt = target, RichTextEditPlugin.tryUpdateRichtext(target);
|
|
20779
|
+
const shadowRoot = this.getShadow(target),
|
|
20590
20780
|
cache = target.getFrameCache();
|
|
20591
|
-
if (
|
|
20592
|
-
|
|
20593
|
-
|
|
20594
|
-
|
|
20595
|
-
|
|
20596
|
-
|
|
20597
|
-
|
|
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
|
-
}
|
|
20781
|
+
if (cache) {
|
|
20782
|
+
if (this.computeGlobalDelta(cache), shadowRoot.setAttributes({
|
|
20783
|
+
shadowRootIdx: 1,
|
|
20784
|
+
pickable: !1,
|
|
20785
|
+
x: this.deltaX,
|
|
20786
|
+
y: this.deltaY
|
|
20787
|
+
}), !this.editLine) {
|
|
20788
|
+
const line = createLine({
|
|
20789
|
+
x: 0,
|
|
20790
|
+
y: 0,
|
|
20791
|
+
lineWidth: 1,
|
|
20792
|
+
stroke: "black"
|
|
20793
|
+
});
|
|
20794
|
+
this.addAnimateToLine(line), this.editLine = line, this.ticker.start(!0);
|
|
20795
|
+
const g = createGroup({
|
|
20796
|
+
x: 0,
|
|
20797
|
+
y: 0,
|
|
20798
|
+
width: 0,
|
|
20799
|
+
height: 0
|
|
20800
|
+
});
|
|
20801
|
+
this.editBg = g, shadowRoot.add(this.editLine), shadowRoot.add(this.editBg);
|
|
20802
|
+
}
|
|
20803
|
+
if (data = data || this.computedCursorPosByEvent(e, cache)) {
|
|
20804
|
+
const {
|
|
20805
|
+
x: x,
|
|
20806
|
+
y1: y1,
|
|
20807
|
+
y2: y2,
|
|
20808
|
+
cursorIndex: cursorIndex
|
|
20809
|
+
} = data;
|
|
20810
|
+
this.startCursorPos = {
|
|
20811
|
+
x: x,
|
|
20812
|
+
y: (y1 + y2) / 2
|
|
20813
|
+
}, this.curCursorIdx = cursorIndex, this.selectionStartCursorIdx = cursorIndex, this.setCursorAndTextArea(x, y1, y2, target);
|
|
20814
|
+
} else {
|
|
20815
|
+
const x = 0,
|
|
20816
|
+
y1 = 0,
|
|
20817
|
+
y2 = getRichTextBounds(Object.assign(Object.assign({}, target.attribute), {
|
|
20818
|
+
textConfig: [{
|
|
20819
|
+
text: "a"
|
|
20820
|
+
}]
|
|
20821
|
+
})).height();
|
|
20822
|
+
this.startCursorPos = {
|
|
20823
|
+
x: x,
|
|
20824
|
+
y: (y1 + y2) / 2
|
|
20825
|
+
}, this.curCursorIdx = -.1, this.selectionStartCursorIdx = -.1, this.setCursorAndTextArea(x, y1, y2, target);
|
|
20826
|
+
}
|
|
20827
|
+
this.tryShowShadowPlaceholder(), this.tryShowInputBounds(), this.currRt.addUpdateBoundTag();
|
|
20625
20828
|
}
|
|
20626
20829
|
}
|
|
20627
|
-
|
|
20628
|
-
const
|
|
20629
|
-
|
|
20830
|
+
offsetLineBgAndShadowBounds() {
|
|
20831
|
+
const rt = this.currRt,
|
|
20832
|
+
{
|
|
20833
|
+
textBaseline: textBaseline
|
|
20834
|
+
} = rt.attribute;
|
|
20835
|
+
let b,
|
|
20836
|
+
dy = 0,
|
|
20837
|
+
attr = rt.attribute;
|
|
20838
|
+
"middle" !== textBaseline && "bottom" !== textBaseline || (attr.textConfig.length || (attr = Object.assign(Object.assign({}, attr), {
|
|
20839
|
+
textConfig: [{
|
|
20840
|
+
text: "a"
|
|
20841
|
+
}]
|
|
20842
|
+
})), b = getRichTextBounds(attr)), "middle" === textBaseline ? dy = -b.height() / 2 : "bottom" === textBaseline && (dy = -b.height()), this.editLine && this.editLine.setAttributes({
|
|
20843
|
+
dy: dy
|
|
20844
|
+
}), this.editBg && this.editBg.setAttributes({
|
|
20845
|
+
dy: dy
|
|
20846
|
+
}), this.shadowBounds && this.shadowBounds.setAttributes({
|
|
20847
|
+
dy: dy
|
|
20848
|
+
});
|
|
20849
|
+
}
|
|
20850
|
+
deFocus() {
|
|
20851
|
+
let trulyDeFocus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
|
|
20852
|
+
const currRt = this.currRt;
|
|
20853
|
+
if (!currRt) return;
|
|
20854
|
+
this.updateCbs && this.updateCbs.forEach(cb => cb("beforeDefocus", this, {
|
|
20855
|
+
trulyDeFocus: trulyDeFocus
|
|
20856
|
+
})), trulyDeFocus && (this.trySyncPlaceholderToTextConfig(), currRt.detachShadow()), this.currRt = null, this.editLine && (this.editLine.parent && this.editLine.parent.removeChild(this.editLine), this.editLine.release(), this.editLine = null, this.editBg.parent && this.editBg.parent.removeChild(this.editBg), this.editBg.release(), this.editBg = null), trulyDeFocus && (this.shadowBounds && (this.shadowBounds.parent && this.shadowBounds.parent.removeChild(this.shadowBounds), this.shadowBounds.release(), this.shadowBounds = null), this.shadowPlaceHolder && (this.shadowPlaceHolder.parent && this.shadowPlaceHolder.parent.removeChild(this.shadowPlaceHolder), this.shadowPlaceHolder.release(), this.shadowPlaceHolder = null)), this.focusing = !1;
|
|
20857
|
+
const textConfig = currRt.attribute.textConfig;
|
|
20858
|
+
let lastConfig = textConfig[textConfig.length - 1],
|
|
20859
|
+
cleared = !1;
|
|
20860
|
+
for (; lastConfig && "\n" === lastConfig.text;) textConfig.pop(), lastConfig = textConfig[textConfig.length - 1], cleared = !0;
|
|
20861
|
+
cleared && currRt.setAttributes({
|
|
20862
|
+
textConfig: textConfig
|
|
20863
|
+
}), currRt.removeEventListener("pointerleave", this.handleLeave);
|
|
20630
20864
|
}
|
|
20631
20865
|
addAnimateToLine(line) {
|
|
20632
20866
|
line.animates && line.animates.forEach(animate => {
|
|
20633
20867
|
animate.stop(), animate.release();
|
|
20634
20868
|
});
|
|
20635
|
-
|
|
20636
|
-
|
|
20869
|
+
line.animate({
|
|
20870
|
+
timeline: this.timeline
|
|
20871
|
+
}).to({
|
|
20637
20872
|
opacity: 1
|
|
20638
20873
|
}, 10, "linear").wait(700).to({
|
|
20639
20874
|
opacity: 0
|
|
@@ -20673,67 +20908,75 @@ class RichTextEditPlugin {
|
|
|
20673
20908
|
},
|
|
20674
20909
|
line0Info = this.getLineByPoint(cache, startCursorPos),
|
|
20675
20910
|
line1Info = this.getLineByPoint(cache, endCursorPos);
|
|
20676
|
-
if (
|
|
20677
|
-
|
|
20678
|
-
|
|
20679
|
-
width: endCursorPos.x - startCursorPos.x,
|
|
20680
|
-
height: line0Info.height,
|
|
20681
|
-
fill: "#336df4",
|
|
20682
|
-
fillOpacity: .2
|
|
20683
|
-
});else {
|
|
20684
|
-
this.editBg.setAttributes({
|
|
20685
|
-
x: 0,
|
|
20911
|
+
if (line0Info && line1Info) {
|
|
20912
|
+
if ((startCursorPos.y > endCursorPos.y || startCursorPos.y === endCursorPos.y && startCursorPos.x > endCursorPos.x) && ([startCursorPos, endCursorPos] = [endCursorPos, startCursorPos], [line1Info, line0Info] = [line0Info, line1Info]), this.hideSelection(), line0Info === line1Info) this.editBg.setAttributes({
|
|
20913
|
+
x: startCursorPos.x,
|
|
20686
20914
|
y: line0Info.top,
|
|
20687
|
-
width:
|
|
20688
|
-
height:
|
|
20689
|
-
|
|
20690
|
-
|
|
20691
|
-
|
|
20692
|
-
|
|
20693
|
-
|
|
20694
|
-
|
|
20695
|
-
|
|
20696
|
-
|
|
20697
|
-
|
|
20698
|
-
|
|
20699
|
-
|
|
20700
|
-
|
|
20701
|
-
|
|
20702
|
-
|
|
20703
|
-
|
|
20704
|
-
|
|
20705
|
-
|
|
20706
|
-
|
|
20707
|
-
|
|
20708
|
-
|
|
20709
|
-
|
|
20710
|
-
|
|
20711
|
-
|
|
20712
|
-
|
|
20713
|
-
|
|
20714
|
-
|
|
20715
|
-
|
|
20716
|
-
|
|
20717
|
-
|
|
20718
|
-
|
|
20719
|
-
|
|
20720
|
-
|
|
20721
|
-
|
|
20722
|
-
|
|
20723
|
-
|
|
20724
|
-
|
|
20725
|
-
|
|
20915
|
+
width: endCursorPos.x - startCursorPos.x,
|
|
20916
|
+
height: line0Info.height,
|
|
20917
|
+
fill: "#336df4",
|
|
20918
|
+
fillOpacity: .2
|
|
20919
|
+
});else {
|
|
20920
|
+
this.editBg.setAttributes({
|
|
20921
|
+
x: 0,
|
|
20922
|
+
y: line0Info.top,
|
|
20923
|
+
width: 0,
|
|
20924
|
+
height: 0
|
|
20925
|
+
});
|
|
20926
|
+
const startIdx = cache.lines.findIndex(item => item === line0Info),
|
|
20927
|
+
endIdx = cache.lines.findIndex(item => item === line1Info);
|
|
20928
|
+
let y = 0;
|
|
20929
|
+
for (let i = startIdx; i <= endIdx; i++) {
|
|
20930
|
+
const line = cache.lines[i];
|
|
20931
|
+
if (i === startIdx) {
|
|
20932
|
+
const p = line.paragraphs[line.paragraphs.length - 1];
|
|
20933
|
+
this.editBg.add(createRect({
|
|
20934
|
+
x: startCursorPos.x,
|
|
20935
|
+
y: y,
|
|
20936
|
+
width: p.left + p.width - startCursorPos.x,
|
|
20937
|
+
height: line.height,
|
|
20938
|
+
fill: "#336df4",
|
|
20939
|
+
fillOpacity: .2
|
|
20940
|
+
}));
|
|
20941
|
+
} else if (i === endIdx) {
|
|
20942
|
+
const p = line.paragraphs[0];
|
|
20943
|
+
this.editBg.add(createRect({
|
|
20944
|
+
x: p.left,
|
|
20945
|
+
y: y,
|
|
20946
|
+
width: endCursorPos.x - p.left,
|
|
20947
|
+
height: line.height,
|
|
20948
|
+
fill: "#336df4",
|
|
20949
|
+
fillOpacity: .2
|
|
20950
|
+
}));
|
|
20951
|
+
} else {
|
|
20952
|
+
const p0 = line.paragraphs[0],
|
|
20953
|
+
p1 = line.paragraphs[line.paragraphs.length - 1];
|
|
20954
|
+
this.editBg.add(createRect({
|
|
20955
|
+
x: p0.left,
|
|
20956
|
+
y: y,
|
|
20957
|
+
width: p1.left + p1.width - p0.left,
|
|
20958
|
+
height: line.height,
|
|
20959
|
+
fill: "#336df4",
|
|
20960
|
+
fillOpacity: .2
|
|
20961
|
+
}));
|
|
20962
|
+
}
|
|
20963
|
+
y += line.height;
|
|
20726
20964
|
}
|
|
20727
|
-
y += line.height;
|
|
20728
20965
|
}
|
|
20966
|
+
this.setCursorAndTextArea(currCursorData.x, currCursorData.y1, currCursorData.y2, this.currRt), this.triggerRender(), this.updateCbs.forEach(cb => cb("selection", this));
|
|
20729
20967
|
}
|
|
20730
|
-
this.setCursorAndTextArea(currCursorData.x, currCursorData.y1 + 2, currCursorData.y2 - 2, this.currRt), this.triggerRender(), this.updateCbs.forEach(cb => cb("selection", this));
|
|
20731
20968
|
}
|
|
20732
20969
|
hideSelection() {
|
|
20733
20970
|
this.editBg && (this.editBg.removeAllChild(), this.editBg.setAttributes({
|
|
20734
20971
|
fill: "transparent"
|
|
20735
20972
|
}));
|
|
20736
20973
|
}
|
|
20974
|
+
getShadow(rt) {
|
|
20975
|
+
const sr = rt.shadowRoot || rt.attachShadow();
|
|
20976
|
+
return sr.setAttributes({
|
|
20977
|
+
boundsMode: "empty"
|
|
20978
|
+
}), sr;
|
|
20979
|
+
}
|
|
20737
20980
|
getLineByPoint(cache, p1) {
|
|
20738
20981
|
let lineInfo = cache.lines[0];
|
|
20739
20982
|
for (let i = 0; i < cache.lines.length && !(lineInfo.top <= p1.y && lineInfo.top + lineInfo.height >= p1.y); i++) lineInfo = cache.lines[i + 1];
|
|
@@ -20765,7 +21008,10 @@ class RichTextEditPlugin {
|
|
|
20765
21008
|
return -1;
|
|
20766
21009
|
}
|
|
20767
21010
|
isRichtext(e) {
|
|
20768
|
-
return !(!e.target || "richtext" !== e.target.type
|
|
21011
|
+
return !(!e.target || "richtext" !== e.target.type);
|
|
21012
|
+
}
|
|
21013
|
+
isEditableRichtext(e) {
|
|
21014
|
+
return this.isRichtext(e) && !!e.target.attribute.editable;
|
|
20769
21015
|
}
|
|
20770
21016
|
triggerRender() {
|
|
20771
21017
|
this.pluginService.stage.renderNextFrame();
|
|
@@ -20783,7 +21029,18 @@ class RichTextEditPlugin {
|
|
|
20783
21029
|
x: 0,
|
|
20784
21030
|
y: 0
|
|
20785
21031
|
};
|
|
20786
|
-
|
|
21032
|
+
e.target.globalTransMatrix.transformPoint(p, p1), p1.x -= this.deltaX, p1.y -= this.deltaY;
|
|
21033
|
+
const rt = this.currRt,
|
|
21034
|
+
{
|
|
21035
|
+
textBaseline: textBaseline
|
|
21036
|
+
} = rt.attribute;
|
|
21037
|
+
let dy = 0;
|
|
21038
|
+
if ("middle" === textBaseline) {
|
|
21039
|
+
dy = getRichTextBounds(rt.attribute).height() / 2;
|
|
21040
|
+
} else if ("bottom" === textBaseline) {
|
|
21041
|
+
dy = getRichTextBounds(rt.attribute).height();
|
|
21042
|
+
}
|
|
21043
|
+
return p1.y += dy, p1;
|
|
20787
21044
|
}
|
|
20788
21045
|
setCursorAndTextArea(x, y1, y2, rt) {
|
|
20789
21046
|
this.editLine.setAttributes({
|
|
@@ -20807,7 +21064,7 @@ class RichTextEditPlugin {
|
|
|
20807
21064
|
left: left,
|
|
20808
21065
|
top: top
|
|
20809
21066
|
} = this.pluginService.stage.window.getBoundingClientRect();
|
|
20810
|
-
out.x += left, out.y += top, this.editModule.moveTo(out.x, out.y, rt, this.curCursorIdx, this.selectionStartCursorIdx);
|
|
21067
|
+
out.x += left, out.y += top, this.offsetLineBgAndShadowBounds(), this.editModule.moveTo(out.x, out.y, rt, this.curCursorIdx, this.selectionStartCursorIdx);
|
|
20811
21068
|
}
|
|
20812
21069
|
computedCursorPosByEvent(e, cache) {
|
|
20813
21070
|
const p1 = this.getEventPosition(e),
|
|
@@ -20818,9 +21075,8 @@ class RichTextEditPlugin {
|
|
|
20818
21075
|
delta: delta
|
|
20819
21076
|
} = this.getColumnAndIndexByLinePoint(lineInfo, p1);
|
|
20820
21077
|
if (!columnInfo) return;
|
|
20821
|
-
|
|
21078
|
+
const y1 = lineInfo.top,
|
|
20822
21079
|
y2 = lineInfo.top + lineInfo.height;
|
|
20823
|
-
y1 += 2, y2 -= 2;
|
|
20824
21080
|
let cursorIndex = this.getColumnIndex(cache, columnInfo);
|
|
20825
21081
|
cursorIndex += delta;
|
|
20826
21082
|
return {
|
|
@@ -20839,21 +21095,36 @@ class RichTextEditPlugin {
|
|
|
20839
21095
|
cache = rt.getFrameCache(),
|
|
20840
21096
|
column = this.getColumnByIndex(cache, idx),
|
|
20841
21097
|
height = null !== (_a = rt.attribute.fontSize) && void 0 !== _a ? _a : null === (_c = null === (_b = rt.attribute.textConfig) || void 0 === _b ? void 0 : _b[0]) || void 0 === _c ? void 0 : _c.fontSize;
|
|
20842
|
-
if (!column)
|
|
20843
|
-
|
|
20844
|
-
|
|
20845
|
-
|
|
20846
|
-
|
|
21098
|
+
if (!column) {
|
|
21099
|
+
if (!cache.lines.length) {
|
|
21100
|
+
return {
|
|
21101
|
+
x: 0,
|
|
21102
|
+
y1: 0,
|
|
21103
|
+
y2: getRichTextBounds(Object.assign(Object.assign({}, rt.attribute), {
|
|
21104
|
+
textConfig: [{
|
|
21105
|
+
text: "a"
|
|
21106
|
+
}]
|
|
21107
|
+
})).height()
|
|
21108
|
+
};
|
|
21109
|
+
}
|
|
21110
|
+
return {
|
|
21111
|
+
x: 0,
|
|
21112
|
+
y1: 0,
|
|
21113
|
+
y2: height
|
|
21114
|
+
};
|
|
21115
|
+
}
|
|
20847
21116
|
const {
|
|
20848
|
-
|
|
20849
|
-
|
|
20850
|
-
|
|
20851
|
-
|
|
21117
|
+
lineInfo: lineInfo,
|
|
21118
|
+
columnInfo: columnInfo
|
|
21119
|
+
} = column,
|
|
21120
|
+
y1 = lineInfo.top,
|
|
20852
21121
|
y2 = lineInfo.top + lineInfo.height;
|
|
20853
|
-
return
|
|
21122
|
+
return {
|
|
20854
21123
|
x: columnInfo.left + (leftRight < 0 ? 0 : columnInfo.width),
|
|
20855
21124
|
y1: y1,
|
|
20856
|
-
y2: y2
|
|
21125
|
+
y2: y2,
|
|
21126
|
+
lineInfo: lineInfo,
|
|
21127
|
+
columnInfo: columnInfo
|
|
20857
21128
|
};
|
|
20858
21129
|
}
|
|
20859
21130
|
getColumnByIndex(cache, index) {
|
|
@@ -20877,6 +21148,37 @@ class RichTextEditPlugin {
|
|
|
20877
21148
|
let defaultAll = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : !1;
|
|
20878
21149
|
return this.currRt ? null != this.selectionStartCursorIdx && null != this.curCursorIdx ? new Selection(this.selectionStartCursorIdx, this.curCursorIdx, this.currRt) : defaultAll ? RichTextEditPlugin.CreateSelection(this.currRt) : null : null;
|
|
20879
21150
|
}
|
|
21151
|
+
forceFocus(params) {
|
|
21152
|
+
const {
|
|
21153
|
+
target: target,
|
|
21154
|
+
e: e,
|
|
21155
|
+
cursorIndex: cursorIndex
|
|
21156
|
+
} = params;
|
|
21157
|
+
target && (this.currRt = target, e ? this._forceFocusByEvent(e) : this._forceFocusByCursorIndex(null != cursorIndex ? cursorIndex : -.1));
|
|
21158
|
+
}
|
|
21159
|
+
_forceFocusByEvent(e) {
|
|
21160
|
+
this.handleEnter(), this.handlePointerDown(e), this.handlePointerUp(e);
|
|
21161
|
+
}
|
|
21162
|
+
_forceFocusByCursorIndex(cursorIndex) {
|
|
21163
|
+
const richtext = this.currRt;
|
|
21164
|
+
if (!richtext) return;
|
|
21165
|
+
let x = 0,
|
|
21166
|
+
y1 = 0,
|
|
21167
|
+
y2 = 2,
|
|
21168
|
+
lineInfo = null,
|
|
21169
|
+
columnInfo = null;
|
|
21170
|
+
const data = this.computedCursorPosByCursorIdx(cursorIndex, richtext);
|
|
21171
|
+
x = data.x, y1 = data.y1, y2 = data.y2, lineInfo = data.lineInfo, columnInfo = data.columnInfo, this.onFocus({
|
|
21172
|
+
target: this.currRt
|
|
21173
|
+
}, {
|
|
21174
|
+
x: x,
|
|
21175
|
+
y1: y1,
|
|
21176
|
+
y2: y2,
|
|
21177
|
+
cursorIndex: cursorIndex,
|
|
21178
|
+
lineInfo: lineInfo,
|
|
21179
|
+
columnInfo: columnInfo
|
|
21180
|
+
});
|
|
21181
|
+
}
|
|
20880
21182
|
}
|
|
20881
21183
|
|
|
20882
21184
|
class DefaultGraphicAllocate {
|
|
@@ -21059,7 +21361,7 @@ const polygonModule = new ContainerModule(bind => {
|
|
|
21059
21361
|
loadPolygonModule || (loadPolygonModule = !0, bind(PolygonRender).to(DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
|
|
21060
21362
|
});
|
|
21061
21363
|
|
|
21062
|
-
var __decorate$
|
|
21364
|
+
var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21063
21365
|
var d,
|
|
21064
21366
|
c = arguments.length,
|
|
21065
21367
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21091,21 +21393,21 @@ let DefaultCanvasGlyphRender = class {
|
|
|
21091
21393
|
}), context.highPerformanceRestore();
|
|
21092
21394
|
}
|
|
21093
21395
|
};
|
|
21094
|
-
DefaultCanvasGlyphRender = __decorate$
|
|
21396
|
+
DefaultCanvasGlyphRender = __decorate$1a([injectable()], DefaultCanvasGlyphRender);
|
|
21095
21397
|
|
|
21096
21398
|
let loadGlyphModule = !1;
|
|
21097
21399
|
const glyphModule = new ContainerModule(bind => {
|
|
21098
21400
|
loadGlyphModule || (loadGlyphModule = !0, bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender));
|
|
21099
21401
|
});
|
|
21100
21402
|
|
|
21101
|
-
var __decorate$
|
|
21403
|
+
var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21102
21404
|
var d,
|
|
21103
21405
|
c = arguments.length,
|
|
21104
21406
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
21105
21407
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
21106
21408
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21107
21409
|
},
|
|
21108
|
-
__metadata$
|
|
21410
|
+
__metadata$U = undefined && undefined.__metadata || function (k, v) {
|
|
21109
21411
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21110
21412
|
};
|
|
21111
21413
|
let DefaultCanvasRichTextRender = class extends BaseRender {
|
|
@@ -21159,7 +21461,7 @@ let DefaultCanvasRichTextRender = class extends BaseRender {
|
|
|
21159
21461
|
this._draw(richtext, richtextAttribute, !1, drawContext);
|
|
21160
21462
|
}
|
|
21161
21463
|
};
|
|
21162
|
-
DefaultCanvasRichTextRender = __decorate$
|
|
21464
|
+
DefaultCanvasRichTextRender = __decorate$19([injectable(), __metadata$U("design:paramtypes", [])], DefaultCanvasRichTextRender);
|
|
21163
21465
|
|
|
21164
21466
|
let loadRichtextModule = !1;
|
|
21165
21467
|
const richtextModule = new ContainerModule(bind => {
|
|
@@ -21243,7 +21545,7 @@ class Base3dRender extends BaseRender {
|
|
|
21243
21545
|
}
|
|
21244
21546
|
}
|
|
21245
21547
|
|
|
21246
|
-
var __decorate$
|
|
21548
|
+
var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21247
21549
|
var d,
|
|
21248
21550
|
c = arguments.length,
|
|
21249
21551
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21299,14 +21601,14 @@ let DefaultCanvasRect3dRender = class extends Base3dRender {
|
|
|
21299
21601
|
this._draw(rect, rectAttribute, !1, drawContext);
|
|
21300
21602
|
}
|
|
21301
21603
|
};
|
|
21302
|
-
DefaultCanvasRect3dRender = __decorate$
|
|
21604
|
+
DefaultCanvasRect3dRender = __decorate$18([injectable()], DefaultCanvasRect3dRender);
|
|
21303
21605
|
|
|
21304
21606
|
let loadRect3dModule = !1;
|
|
21305
21607
|
const rect3dModule = new ContainerModule(bind => {
|
|
21306
21608
|
loadRect3dModule || (loadRect3dModule = !0, bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender));
|
|
21307
21609
|
});
|
|
21308
21610
|
|
|
21309
|
-
var __decorate$
|
|
21611
|
+
var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21310
21612
|
var d,
|
|
21311
21613
|
c = arguments.length,
|
|
21312
21614
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21433,14 +21735,14 @@ let DefaultCanvasArc3DRender = class extends BaseRender {
|
|
|
21433
21735
|
this._draw(arc, arcAttribute, !1, drawContext, params);
|
|
21434
21736
|
}
|
|
21435
21737
|
};
|
|
21436
|
-
DefaultCanvasArc3DRender = __decorate$
|
|
21738
|
+
DefaultCanvasArc3DRender = __decorate$17([injectable()], DefaultCanvasArc3DRender);
|
|
21437
21739
|
|
|
21438
21740
|
let loadArc3dModule = !1;
|
|
21439
21741
|
const arc3dModule = new ContainerModule(bind => {
|
|
21440
21742
|
loadArc3dModule || (loadArc3dModule = !0, bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender));
|
|
21441
21743
|
});
|
|
21442
21744
|
|
|
21443
|
-
var __decorate$
|
|
21745
|
+
var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21444
21746
|
var d,
|
|
21445
21747
|
c = arguments.length,
|
|
21446
21748
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21477,7 +21779,7 @@ let DefaultCanvasPyramid3dRender = class extends Base3dRender {
|
|
|
21477
21779
|
this._draw(pyramid3d, pyramid3dAttribute, !1, drawContext);
|
|
21478
21780
|
}
|
|
21479
21781
|
};
|
|
21480
|
-
DefaultCanvasPyramid3dRender = __decorate$
|
|
21782
|
+
DefaultCanvasPyramid3dRender = __decorate$16([injectable()], DefaultCanvasPyramid3dRender);
|
|
21481
21783
|
|
|
21482
21784
|
let loadPyramid3dModule = !1;
|
|
21483
21785
|
const pyramid3dModule = new ContainerModule(bind => {
|
|
@@ -23600,17 +23902,17 @@ class RoughBaseRender {
|
|
|
23600
23902
|
}
|
|
23601
23903
|
}
|
|
23602
23904
|
|
|
23603
|
-
var __decorate$
|
|
23905
|
+
var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23604
23906
|
var d,
|
|
23605
23907
|
c = arguments.length,
|
|
23606
23908
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
23607
23909
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
23608
23910
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23609
23911
|
},
|
|
23610
|
-
__metadata$
|
|
23912
|
+
__metadata$T = undefined && undefined.__metadata || function (k, v) {
|
|
23611
23913
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
23612
23914
|
},
|
|
23613
|
-
__param$
|
|
23915
|
+
__param$B = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
23614
23916
|
return function (target, key) {
|
|
23615
23917
|
decorator(target, key, paramIndex);
|
|
23616
23918
|
};
|
|
@@ -23696,9 +23998,9 @@ let RoughCanvasArcRender = class extends RoughBaseRender {
|
|
|
23696
23998
|
}), context.highPerformanceRestore();
|
|
23697
23999
|
}
|
|
23698
24000
|
};
|
|
23699
|
-
RoughCanvasArcRender = __decorate$
|
|
24001
|
+
RoughCanvasArcRender = __decorate$15([injectable(), __param$B(0, inject(DefaultCanvasArcRender)), __metadata$T("design:paramtypes", [Object])], RoughCanvasArcRender);
|
|
23700
24002
|
|
|
23701
|
-
var __decorate$
|
|
24003
|
+
var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23702
24004
|
var d,
|
|
23703
24005
|
c = arguments.length,
|
|
23704
24006
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -23776,19 +24078,19 @@ let RoughCanvasAreaRender = class extends DefaultCanvasAreaRender {
|
|
|
23776
24078
|
}), context.highPerformanceRestore(), !1;
|
|
23777
24079
|
}
|
|
23778
24080
|
};
|
|
23779
|
-
RoughCanvasAreaRender = __decorate$
|
|
24081
|
+
RoughCanvasAreaRender = __decorate$14([injectable()], RoughCanvasAreaRender);
|
|
23780
24082
|
|
|
23781
|
-
var __decorate$
|
|
24083
|
+
var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23782
24084
|
var d,
|
|
23783
24085
|
c = arguments.length,
|
|
23784
24086
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
23785
24087
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
23786
24088
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23787
24089
|
},
|
|
23788
|
-
__metadata$
|
|
24090
|
+
__metadata$S = undefined && undefined.__metadata || function (k, v) {
|
|
23789
24091
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
23790
24092
|
},
|
|
23791
|
-
__param$
|
|
24093
|
+
__param$A = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
23792
24094
|
return function (target, key) {
|
|
23793
24095
|
decorator(target, key, paramIndex);
|
|
23794
24096
|
};
|
|
@@ -23825,9 +24127,9 @@ let RoughCanvasCircleRender = class extends RoughBaseRender {
|
|
|
23825
24127
|
});
|
|
23826
24128
|
}
|
|
23827
24129
|
};
|
|
23828
|
-
RoughCanvasCircleRender = __decorate$
|
|
24130
|
+
RoughCanvasCircleRender = __decorate$13([injectable(), __param$A(0, inject(DefaultCanvasCircleRender)), __metadata$S("design:paramtypes", [Object])], RoughCanvasCircleRender);
|
|
23829
24131
|
|
|
23830
|
-
var __decorate$
|
|
24132
|
+
var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23831
24133
|
var d,
|
|
23832
24134
|
c = arguments.length,
|
|
23833
24135
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -23906,19 +24208,19 @@ let RoughCanvasLineRender = class extends DefaultCanvasLineRender {
|
|
|
23906
24208
|
}), context.highPerformanceRestore(), !1;
|
|
23907
24209
|
}
|
|
23908
24210
|
};
|
|
23909
|
-
RoughCanvasLineRender = __decorate$
|
|
24211
|
+
RoughCanvasLineRender = __decorate$12([injectable()], RoughCanvasLineRender);
|
|
23910
24212
|
|
|
23911
|
-
var __decorate$
|
|
24213
|
+
var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23912
24214
|
var d,
|
|
23913
24215
|
c = arguments.length,
|
|
23914
24216
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
23915
24217
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
23916
24218
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23917
24219
|
},
|
|
23918
|
-
__metadata$
|
|
24220
|
+
__metadata$R = undefined && undefined.__metadata || function (k, v) {
|
|
23919
24221
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
23920
24222
|
},
|
|
23921
|
-
__param$
|
|
24223
|
+
__param$z = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
23922
24224
|
return function (target, key) {
|
|
23923
24225
|
decorator(target, key, paramIndex);
|
|
23924
24226
|
};
|
|
@@ -23992,19 +24294,19 @@ let RoughCanvasPathRender = class extends RoughBaseRender {
|
|
|
23992
24294
|
}), context.highPerformanceRestore();
|
|
23993
24295
|
}
|
|
23994
24296
|
};
|
|
23995
|
-
RoughCanvasPathRender = __decorate$
|
|
24297
|
+
RoughCanvasPathRender = __decorate$11([injectable(), __param$z(0, inject(DefaultCanvasPathRender)), __metadata$R("design:paramtypes", [Object])], RoughCanvasPathRender);
|
|
23996
24298
|
|
|
23997
|
-
var __decorate$
|
|
24299
|
+
var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
23998
24300
|
var d,
|
|
23999
24301
|
c = arguments.length,
|
|
24000
24302
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
24001
24303
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
24002
24304
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24003
24305
|
},
|
|
24004
|
-
__metadata$
|
|
24306
|
+
__metadata$Q = undefined && undefined.__metadata || function (k, v) {
|
|
24005
24307
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
24006
24308
|
},
|
|
24007
|
-
__param$
|
|
24309
|
+
__param$y = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
24008
24310
|
return function (target, key) {
|
|
24009
24311
|
decorator(target, key, paramIndex);
|
|
24010
24312
|
};
|
|
@@ -24095,19 +24397,19 @@ let RoughCanvasRectRender = class extends RoughBaseRender {
|
|
|
24095
24397
|
}), context.highPerformanceRestore();
|
|
24096
24398
|
}
|
|
24097
24399
|
};
|
|
24098
|
-
RoughCanvasRectRender = __decorate$
|
|
24400
|
+
RoughCanvasRectRender = __decorate$10([injectable(), __param$y(0, inject(DefaultCanvasRectRender)), __metadata$Q("design:paramtypes", [Object])], RoughCanvasRectRender);
|
|
24099
24401
|
|
|
24100
|
-
var __decorate
|
|
24402
|
+
var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24101
24403
|
var d,
|
|
24102
24404
|
c = arguments.length,
|
|
24103
24405
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
24104
24406
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
24105
24407
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24106
24408
|
},
|
|
24107
|
-
__metadata$
|
|
24409
|
+
__metadata$P = undefined && undefined.__metadata || function (k, v) {
|
|
24108
24410
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
24109
24411
|
},
|
|
24110
|
-
__param$
|
|
24412
|
+
__param$x = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
24111
24413
|
return function (target, key) {
|
|
24112
24414
|
decorator(target, key, paramIndex);
|
|
24113
24415
|
};
|
|
@@ -24199,7 +24501,7 @@ let RoughCanvasSymbolRender = class extends BaseRender {
|
|
|
24199
24501
|
if (this.canvasRenderer.drawShape) return this.canvasRenderer.drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb);
|
|
24200
24502
|
}
|
|
24201
24503
|
};
|
|
24202
|
-
RoughCanvasSymbolRender = __decorate
|
|
24504
|
+
RoughCanvasSymbolRender = __decorate$$([injectable(), __param$x(0, inject(DefaultCanvasSymbolRender)), __metadata$P("design:paramtypes", [Object])], RoughCanvasSymbolRender);
|
|
24203
24505
|
|
|
24204
24506
|
var _roughModule = new ContainerModule(bind => {
|
|
24205
24507
|
bind(RoughCanvasCircleRender).toSelf().inSingletonScope(), bind(GraphicRender).to(RoughCanvasCircleRender), bind(RoughCanvasRectRender).toSelf().inSingletonScope(), bind(GraphicRender).to(RoughCanvasRectRender), bind(RoughCanvasPathRender).toSelf().inSingletonScope(), bind(GraphicRender).to(RoughCanvasPathRender), bind(RoughCanvasSymbolRender).toSelf().inSingletonScope(), bind(GraphicRender).to(RoughCanvasSymbolRender), bind(RoughCanvasLineRender).toSelf().inSingletonScope(), bind(GraphicRender).to(RoughCanvasLineRender), bind(RoughCanvasAreaRender).toSelf().inSingletonScope(), bind(GraphicRender).to(RoughCanvasAreaRender), bind(RoughCanvasArcRender).toSelf().inSingletonScope(), bind(GraphicRender).to(RoughCanvasArcRender);
|
|
@@ -24222,7 +24524,6 @@ const CanvasArc3dPicker = Symbol.for("CanvasArc3dPicker");
|
|
|
24222
24524
|
const CanvasAreaPicker = Symbol.for("CanvasAreaPicker");
|
|
24223
24525
|
const CanvasCirclePicker = Symbol.for("CanvasCirclePicker");
|
|
24224
24526
|
const CanvasImagePicker = Symbol.for("CanvasImagePicker");
|
|
24225
|
-
const CanvasGifImagePicker = Symbol.for("CanvasGifImagePicker");
|
|
24226
24527
|
const CanvasLinePicker = Symbol.for("CanvasLinePicker");
|
|
24227
24528
|
const CanvasLottiePicker = Symbol.for("CanvasLottiePicker");
|
|
24228
24529
|
const CanvasPathPicker = Symbol.for("CanvasPathPicker");
|
|
@@ -24363,11 +24664,9 @@ function jsx(type, config) {
|
|
|
24363
24664
|
name: name,
|
|
24364
24665
|
id: id,
|
|
24365
24666
|
attribute: attribute,
|
|
24366
|
-
stateProxy: stateProxy
|
|
24367
|
-
animation: animation,
|
|
24368
|
-
timeline: timeline
|
|
24667
|
+
stateProxy: stateProxy
|
|
24369
24668
|
} = _a,
|
|
24370
|
-
props = __rest(_a, ["key", "name", "id", "attribute", "stateProxy"
|
|
24669
|
+
props = __rest(_a, ["key", "name", "id", "attribute", "stateProxy"]);
|
|
24371
24670
|
let c = type;
|
|
24372
24671
|
isString$1(type) && (c = graphicCreator[type]);
|
|
24373
24672
|
const childrenList = [];
|
|
@@ -24376,13 +24675,7 @@ function jsx(type, config) {
|
|
|
24376
24675
|
}
|
|
24377
24676
|
children.length && flatten(1 === children.length ? children[0] : children, childrenList);
|
|
24378
24677
|
const g = "Group" === c.name ? new c(attribute) : c(config);
|
|
24379
|
-
|
|
24380
|
-
const animate = g.animate();
|
|
24381
|
-
timeline && animate.setTimeline(timeline), animation.forEach(item => {
|
|
24382
|
-
animate[item[0]](...item.slice(1));
|
|
24383
|
-
});
|
|
24384
|
-
}
|
|
24385
|
-
return g;
|
|
24678
|
+
return parseToGraphic$1(g, childrenList, props), stateProxy && (g.stateProxy = stateProxy), g;
|
|
24386
24679
|
}
|
|
24387
24680
|
function parseToGraphic$1(g, childrenList, props) {
|
|
24388
24681
|
let out,
|
|
@@ -24712,14 +25005,14 @@ class Gesture extends EventEmitter {
|
|
|
24712
25005
|
}
|
|
24713
25006
|
}
|
|
24714
25007
|
|
|
24715
|
-
var __decorate$
|
|
25008
|
+
var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24716
25009
|
var d,
|
|
24717
25010
|
c = arguments.length,
|
|
24718
25011
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
24719
25012
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
24720
25013
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24721
25014
|
},
|
|
24722
|
-
__metadata$
|
|
25015
|
+
__metadata$O = undefined && undefined.__metadata || function (k, v) {
|
|
24723
25016
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
24724
25017
|
};
|
|
24725
25018
|
const outP = [0, 0, 0],
|
|
@@ -25231,16 +25524,16 @@ let BrowserContext2d = class {
|
|
|
25231
25524
|
this.stack.forEach(m => matrixAllocate.free(m)), this.stack.length = 0;
|
|
25232
25525
|
}
|
|
25233
25526
|
};
|
|
25234
|
-
BrowserContext2d.env = "browser", BrowserContext2d = __decorate$
|
|
25527
|
+
BrowserContext2d.env = "browser", BrowserContext2d = __decorate$_([injectable(), __metadata$O("design:paramtypes", [Object, Number])], BrowserContext2d);
|
|
25235
25528
|
|
|
25236
|
-
var __decorate
|
|
25529
|
+
var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25237
25530
|
var d,
|
|
25238
25531
|
c = arguments.length,
|
|
25239
25532
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25240
25533
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25241
25534
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25242
25535
|
},
|
|
25243
|
-
__metadata$
|
|
25536
|
+
__metadata$N = undefined && undefined.__metadata || function (k, v) {
|
|
25244
25537
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25245
25538
|
};
|
|
25246
25539
|
let BrowserCanvas = class extends BaseCanvas {
|
|
@@ -25302,7 +25595,7 @@ let BrowserCanvas = class extends BaseCanvas {
|
|
|
25302
25595
|
this._context.dpr = this._dpr;
|
|
25303
25596
|
}
|
|
25304
25597
|
};
|
|
25305
|
-
BrowserCanvas.env = "browser", BrowserCanvas = __decorate
|
|
25598
|
+
BrowserCanvas.env = "browser", BrowserCanvas = __decorate$Z([injectable(), __metadata$N("design:paramtypes", [Object])], BrowserCanvas);
|
|
25306
25599
|
|
|
25307
25600
|
function createModule(CanvasConstructor, ContextConstructor) {
|
|
25308
25601
|
return new ContainerModule(bind => {
|
|
@@ -25312,17 +25605,17 @@ function createModule(CanvasConstructor, ContextConstructor) {
|
|
|
25312
25605
|
|
|
25313
25606
|
const browserCanvasModule = createModule(BrowserCanvas, BrowserContext2d);
|
|
25314
25607
|
|
|
25315
|
-
var __decorate$
|
|
25608
|
+
var __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25316
25609
|
var d,
|
|
25317
25610
|
c = arguments.length,
|
|
25318
25611
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25319
25612
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25320
25613
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25321
25614
|
},
|
|
25322
|
-
__metadata$
|
|
25615
|
+
__metadata$M = undefined && undefined.__metadata || function (k, v) {
|
|
25323
25616
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25324
25617
|
},
|
|
25325
|
-
__param$
|
|
25618
|
+
__param$w = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
25326
25619
|
return function (target, key) {
|
|
25327
25620
|
decorator(target, key, paramIndex);
|
|
25328
25621
|
};
|
|
@@ -25373,9 +25666,9 @@ let DefaultCanvasPickerService = class extends DefaultPickService {
|
|
|
25373
25666
|
return data;
|
|
25374
25667
|
}
|
|
25375
25668
|
};
|
|
25376
|
-
DefaultCanvasPickerService = __decorate$
|
|
25669
|
+
DefaultCanvasPickerService = __decorate$Y([injectable(), __param$w(0, inject(ContributionProvider)), __param$w(0, named(CanvasPickerContribution)), __param$w(1, inject(DrawContribution)), __param$w(2, inject(ContributionProvider)), __param$w(2, named(PickItemInterceptor)), __param$w(3, inject(ContributionProvider)), __param$w(3, named(PickServiceInterceptor)), __metadata$M("design:paramtypes", [Object, Object, Object, Object])], DefaultCanvasPickerService);
|
|
25377
25670
|
|
|
25378
|
-
var __decorate$
|
|
25671
|
+
var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25379
25672
|
var d,
|
|
25380
25673
|
c = arguments.length,
|
|
25381
25674
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25390,7 +25683,7 @@ let DefaultCanvasGroupPicker = class {
|
|
|
25390
25683
|
return !1;
|
|
25391
25684
|
}
|
|
25392
25685
|
};
|
|
25393
|
-
DefaultCanvasGroupPicker = __decorate$
|
|
25686
|
+
DefaultCanvasGroupPicker = __decorate$X([injectable()], DefaultCanvasGroupPicker);
|
|
25394
25687
|
|
|
25395
25688
|
const m$1 = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
25396
25689
|
m$1.__vloaded || (m$1.__vloaded = !0, bind(CanvasGroupPicker).to(DefaultCanvasGroupPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGroupPicker), bindContributionProvider(bind, CanvasPickerContribution));
|
|
@@ -25406,14 +25699,14 @@ function loadCanvasPicker(c) {
|
|
|
25406
25699
|
}
|
|
25407
25700
|
|
|
25408
25701
|
var BrowserWindowHandlerContribution_1,
|
|
25409
|
-
__decorate$
|
|
25702
|
+
__decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25410
25703
|
var d,
|
|
25411
25704
|
c = arguments.length,
|
|
25412
25705
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25413
25706
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25414
25707
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25415
25708
|
},
|
|
25416
|
-
__metadata$
|
|
25709
|
+
__metadata$L = undefined && undefined.__metadata || function (k, v) {
|
|
25417
25710
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25418
25711
|
};
|
|
25419
25712
|
let BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = class extends BaseWindowHandlerContribution {
|
|
@@ -25571,19 +25864,19 @@ let BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = clas
|
|
|
25571
25864
|
return this.global.getElementTopLeft(this.canvas.nativeCanvas, baseWindow);
|
|
25572
25865
|
}
|
|
25573
25866
|
};
|
|
25574
|
-
BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$
|
|
25867
|
+
BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = BrowserWindowHandlerContribution_1 = __decorate$W([injectable(), __metadata$L("design:paramtypes", [])], BrowserWindowHandlerContribution);
|
|
25575
25868
|
const browserWindowModule = new ContainerModule(bind => {
|
|
25576
25869
|
bind(BrowserWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(BrowserWindowHandlerContribution)).whenTargetNamed(BrowserWindowHandlerContribution.env);
|
|
25577
25870
|
});
|
|
25578
25871
|
|
|
25579
|
-
var __decorate$
|
|
25872
|
+
var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25580
25873
|
var d,
|
|
25581
25874
|
c = arguments.length,
|
|
25582
25875
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25583
25876
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25584
25877
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25585
25878
|
},
|
|
25586
|
-
__metadata$
|
|
25879
|
+
__metadata$K = undefined && undefined.__metadata || function (k, v) {
|
|
25587
25880
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25588
25881
|
},
|
|
25589
25882
|
__awaiter$2 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
@@ -25637,7 +25930,7 @@ class DynamicB {
|
|
|
25637
25930
|
function createImageElement$1(src) {
|
|
25638
25931
|
let isSvg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
25639
25932
|
const img = document.createElement("img");
|
|
25640
|
-
if (
|
|
25933
|
+
if (img.crossOrigin = "anonymous", isSvg) {
|
|
25641
25934
|
const data = new Blob([src], {
|
|
25642
25935
|
type: "image/svg+xml"
|
|
25643
25936
|
});
|
|
@@ -25830,7 +26123,7 @@ let BrowserEnvContribution = class extends BaseEnvContribution {
|
|
|
25830
26123
|
return navigator.clipboard.writeText(text).then(() => {}).catch(err => {});
|
|
25831
26124
|
}
|
|
25832
26125
|
};
|
|
25833
|
-
BrowserEnvContribution = __decorate$
|
|
26126
|
+
BrowserEnvContribution = __decorate$V([injectable(), __metadata$K("design:paramtypes", [])], BrowserEnvContribution);
|
|
25834
26127
|
|
|
25835
26128
|
const browserEnvModule = new ContainerModule(bind => {
|
|
25836
26129
|
browserEnvModule.isBrowserBound || (browserEnvModule.isBrowserBound = !0, bind(BrowserEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(BrowserEnvContribution));
|
|
@@ -25845,7 +26138,7 @@ function initBrowserEnv() {
|
|
|
25845
26138
|
loadBrowserEnv(container);
|
|
25846
26139
|
}
|
|
25847
26140
|
|
|
25848
|
-
var __decorate$
|
|
26141
|
+
var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25849
26142
|
var d,
|
|
25850
26143
|
c = arguments.length,
|
|
25851
26144
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25890,16 +26183,16 @@ let FeishuContext2d = class extends BrowserContext2d {
|
|
|
25890
26183
|
return null;
|
|
25891
26184
|
}
|
|
25892
26185
|
};
|
|
25893
|
-
FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$
|
|
26186
|
+
FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$U([injectable()], FeishuContext2d);
|
|
25894
26187
|
|
|
25895
|
-
var __decorate$
|
|
26188
|
+
var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25896
26189
|
var d,
|
|
25897
26190
|
c = arguments.length,
|
|
25898
26191
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25899
26192
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25900
26193
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25901
26194
|
},
|
|
25902
|
-
__metadata$
|
|
26195
|
+
__metadata$J = undefined && undefined.__metadata || function (k, v) {
|
|
25903
26196
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25904
26197
|
};
|
|
25905
26198
|
let FeishuCanvas = class extends BaseCanvas {
|
|
@@ -25911,21 +26204,21 @@ let FeishuCanvas = class extends BaseCanvas {
|
|
|
25911
26204
|
}
|
|
25912
26205
|
release() {}
|
|
25913
26206
|
};
|
|
25914
|
-
FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$
|
|
26207
|
+
FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$T([injectable(), __metadata$J("design:paramtypes", [Object])], FeishuCanvas);
|
|
25915
26208
|
|
|
25916
26209
|
const feishuCanvasModule = createModule(FeishuCanvas, FeishuContext2d);
|
|
25917
26210
|
|
|
25918
|
-
var __decorate$
|
|
26211
|
+
var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25919
26212
|
var d,
|
|
25920
26213
|
c = arguments.length,
|
|
25921
26214
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25922
26215
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25923
26216
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25924
26217
|
},
|
|
25925
|
-
__metadata$
|
|
26218
|
+
__metadata$I = undefined && undefined.__metadata || function (k, v) {
|
|
25926
26219
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25927
26220
|
},
|
|
25928
|
-
__param$
|
|
26221
|
+
__param$v = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
25929
26222
|
return function (target, key) {
|
|
25930
26223
|
decorator(target, key, paramIndex);
|
|
25931
26224
|
};
|
|
@@ -26061,22 +26354,22 @@ let FeishuWindowHandlerContribution = class extends BaseWindowHandlerContributio
|
|
|
26061
26354
|
context.nativeContext.save(), context.nativeContext.setTransform(dpr, 0, 0, dpr, 0, 0), context.clearRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1), color && (context.fillStyle = color, context.fillRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1)), context.nativeContext.restore();
|
|
26062
26355
|
}
|
|
26063
26356
|
};
|
|
26064
|
-
FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$
|
|
26357
|
+
FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$S([injectable(), __param$v(0, inject(VGlobal)), __metadata$I("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
|
|
26065
26358
|
const feishuWindowModule = new ContainerModule(bind => {
|
|
26066
26359
|
bind(FeishuWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(FeishuWindowHandlerContribution)).whenTargetNamed(FeishuWindowHandlerContribution.env);
|
|
26067
26360
|
});
|
|
26068
26361
|
|
|
26069
|
-
var __decorate$
|
|
26362
|
+
var __decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26070
26363
|
var d,
|
|
26071
26364
|
c = arguments.length,
|
|
26072
26365
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26073
26366
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26074
26367
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26075
26368
|
},
|
|
26076
|
-
__metadata$
|
|
26369
|
+
__metadata$H = undefined && undefined.__metadata || function (k, v) {
|
|
26077
26370
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26078
26371
|
},
|
|
26079
|
-
__param$
|
|
26372
|
+
__param$u = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26080
26373
|
return function (target, key) {
|
|
26081
26374
|
decorator(target, key, paramIndex);
|
|
26082
26375
|
};
|
|
@@ -26107,7 +26400,7 @@ let DefaultMathPickerService = class extends DefaultPickService {
|
|
|
26107
26400
|
} : null;
|
|
26108
26401
|
}
|
|
26109
26402
|
};
|
|
26110
|
-
DefaultMathPickerService = __decorate$
|
|
26403
|
+
DefaultMathPickerService = __decorate$R([injectable(), __param$u(0, inject(ContributionProvider)), __param$u(0, named(MathPickerContribution)), __param$u(1, inject(ContributionProvider)), __param$u(1, named(PickItemInterceptor)), __param$u(2, inject(ContributionProvider)), __param$u(2, named(PickServiceInterceptor)), __metadata$H("design:paramtypes", [Object, Object, Object])], DefaultMathPickerService);
|
|
26111
26404
|
|
|
26112
26405
|
const m = new ContainerModule(bind => {
|
|
26113
26406
|
m.__vloaded || (m.__vloaded = !0, bindContributionProvider(bind, MathPickerContribution));
|
|
@@ -26144,17 +26437,17 @@ class PickerBase {
|
|
|
26144
26437
|
}
|
|
26145
26438
|
}
|
|
26146
26439
|
|
|
26147
|
-
var __decorate$
|
|
26440
|
+
var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26148
26441
|
var d,
|
|
26149
26442
|
c = arguments.length,
|
|
26150
26443
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26151
26444
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26152
26445
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26153
26446
|
},
|
|
26154
|
-
__metadata$
|
|
26447
|
+
__metadata$G = undefined && undefined.__metadata || function (k, v) {
|
|
26155
26448
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26156
26449
|
},
|
|
26157
|
-
__param$
|
|
26450
|
+
__param$t = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26158
26451
|
return function (target, key) {
|
|
26159
26452
|
decorator(target, key, paramIndex);
|
|
26160
26453
|
};
|
|
@@ -26164,24 +26457,24 @@ let DefaultMathArcPicker = class extends PickerBase {
|
|
|
26164
26457
|
super(), this.canvasRenderer = canvasRenderer, this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
|
|
26165
26458
|
}
|
|
26166
26459
|
};
|
|
26167
|
-
DefaultMathArcPicker = __decorate$
|
|
26460
|
+
DefaultMathArcPicker = __decorate$Q([injectable(), __param$t(0, inject(ArcRender)), __metadata$G("design:paramtypes", [Object])], DefaultMathArcPicker);
|
|
26168
26461
|
|
|
26169
26462
|
let loadArcPick$1 = !1;
|
|
26170
26463
|
const arcMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26171
26464
|
loadArcPick$1 || (loadArcPick$1 = !0, bind(MathArcPicker).to(DefaultMathArcPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathArcPicker));
|
|
26172
26465
|
});
|
|
26173
26466
|
|
|
26174
|
-
var __decorate$
|
|
26467
|
+
var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26175
26468
|
var d,
|
|
26176
26469
|
c = arguments.length,
|
|
26177
26470
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26178
26471
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26179
26472
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26180
26473
|
},
|
|
26181
|
-
__metadata$
|
|
26474
|
+
__metadata$F = undefined && undefined.__metadata || function (k, v) {
|
|
26182
26475
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26183
26476
|
},
|
|
26184
|
-
__param$
|
|
26477
|
+
__param$s = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26185
26478
|
return function (target, key) {
|
|
26186
26479
|
decorator(target, key, paramIndex);
|
|
26187
26480
|
};
|
|
@@ -26191,24 +26484,24 @@ let DefaultMathAreaPicker = class extends PickerBase {
|
|
|
26191
26484
|
super(), this.canvasRenderer = canvasRenderer, this.type = "area", this.numberType = AREA_NUMBER_TYPE;
|
|
26192
26485
|
}
|
|
26193
26486
|
};
|
|
26194
|
-
DefaultMathAreaPicker = __decorate$
|
|
26487
|
+
DefaultMathAreaPicker = __decorate$P([injectable(), __param$s(0, inject(AreaRender)), __metadata$F("design:paramtypes", [Object])], DefaultMathAreaPicker);
|
|
26195
26488
|
|
|
26196
26489
|
let loadAreaPick$1 = !1;
|
|
26197
26490
|
const areaMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26198
26491
|
loadAreaPick$1 || (loadAreaPick$1 = !0, bind(MathAreaPicker).to(DefaultMathAreaPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathAreaPicker));
|
|
26199
26492
|
});
|
|
26200
26493
|
|
|
26201
|
-
var __decorate$
|
|
26494
|
+
var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26202
26495
|
var d,
|
|
26203
26496
|
c = arguments.length,
|
|
26204
26497
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26205
26498
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26206
26499
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26207
26500
|
},
|
|
26208
|
-
__metadata$
|
|
26501
|
+
__metadata$E = undefined && undefined.__metadata || function (k, v) {
|
|
26209
26502
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26210
26503
|
},
|
|
26211
|
-
__param$
|
|
26504
|
+
__param$r = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26212
26505
|
return function (target, key) {
|
|
26213
26506
|
decorator(target, key, paramIndex);
|
|
26214
26507
|
};
|
|
@@ -26218,7 +26511,7 @@ let DefaultMathCirclePicker = class extends PickerBase {
|
|
|
26218
26511
|
super(), this.canvasRenderer = canvasRenderer, this.type = "circle", this.numberType = CIRCLE_NUMBER_TYPE;
|
|
26219
26512
|
}
|
|
26220
26513
|
};
|
|
26221
|
-
DefaultMathCirclePicker = __decorate$
|
|
26514
|
+
DefaultMathCirclePicker = __decorate$O([injectable(), __param$r(0, inject(CircleRender)), __metadata$E("design:paramtypes", [Object])], DefaultMathCirclePicker);
|
|
26222
26515
|
|
|
26223
26516
|
let loadCirclePick$1 = !1;
|
|
26224
26517
|
const circleMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -26249,17 +26542,17 @@ class GlyphPickerBase {
|
|
|
26249
26542
|
}
|
|
26250
26543
|
}
|
|
26251
26544
|
|
|
26252
|
-
var __decorate$
|
|
26545
|
+
var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26253
26546
|
var d,
|
|
26254
26547
|
c = arguments.length,
|
|
26255
26548
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26256
26549
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26257
26550
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26258
26551
|
},
|
|
26259
|
-
__metadata$
|
|
26552
|
+
__metadata$D = undefined && undefined.__metadata || function (k, v) {
|
|
26260
26553
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26261
26554
|
},
|
|
26262
|
-
__param$
|
|
26555
|
+
__param$q = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26263
26556
|
return function (target, key) {
|
|
26264
26557
|
decorator(target, key, paramIndex);
|
|
26265
26558
|
};
|
|
@@ -26269,14 +26562,14 @@ let DefaultMathGlyphPicker = class extends GlyphPickerBase {
|
|
|
26269
26562
|
super(), this.canvasRenderer = canvasRenderer;
|
|
26270
26563
|
}
|
|
26271
26564
|
};
|
|
26272
|
-
DefaultMathGlyphPicker = __decorate$
|
|
26565
|
+
DefaultMathGlyphPicker = __decorate$N([injectable(), __param$q(0, inject(GlyphRender)), __metadata$D("design:paramtypes", [Object])], DefaultMathGlyphPicker);
|
|
26273
26566
|
|
|
26274
26567
|
let loadGlyphPick$1 = !1;
|
|
26275
26568
|
const glyphMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26276
26569
|
loadGlyphPick$1 || (loadGlyphPick$1 = !0, bind(MathGlyphPicker).to(DefaultMathGlyphPicker).inSingletonScope(), bind(DefaultMathGlyphPicker).toService(MathGlyphPicker));
|
|
26277
26570
|
});
|
|
26278
26571
|
|
|
26279
|
-
var __decorate$
|
|
26572
|
+
var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26280
26573
|
var d,
|
|
26281
26574
|
c = arguments.length,
|
|
26282
26575
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26294,24 +26587,24 @@ let DefaultMathImagePicker = class {
|
|
|
26294
26587
|
return !!pickContext && !!image.AABBBounds.containsPoint(point);
|
|
26295
26588
|
}
|
|
26296
26589
|
};
|
|
26297
|
-
DefaultMathImagePicker = __decorate$
|
|
26590
|
+
DefaultMathImagePicker = __decorate$M([injectable()], DefaultMathImagePicker);
|
|
26298
26591
|
|
|
26299
26592
|
let loadImagePick$1 = !1;
|
|
26300
26593
|
const imageMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26301
26594
|
loadImagePick$1 || (loadImagePick$1 = !0, bind(MathImagePicker).to(DefaultMathImagePicker).inSingletonScope(), bind(DefaultMathImagePicker).toService(MathImagePicker));
|
|
26302
26595
|
});
|
|
26303
26596
|
|
|
26304
|
-
var __decorate$
|
|
26597
|
+
var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26305
26598
|
var d,
|
|
26306
26599
|
c = arguments.length,
|
|
26307
26600
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26308
26601
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26309
26602
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26310
26603
|
},
|
|
26311
|
-
__metadata$
|
|
26604
|
+
__metadata$C = undefined && undefined.__metadata || function (k, v) {
|
|
26312
26605
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26313
26606
|
},
|
|
26314
|
-
__param$
|
|
26607
|
+
__param$p = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26315
26608
|
return function (target, key) {
|
|
26316
26609
|
decorator(target, key, paramIndex);
|
|
26317
26610
|
};
|
|
@@ -26321,24 +26614,24 @@ let DefaultMathLinePicker = class extends PickerBase {
|
|
|
26321
26614
|
super(), this.canvasRenderer = canvasRenderer, this.type = "line", this.numberType = LINE_NUMBER_TYPE;
|
|
26322
26615
|
}
|
|
26323
26616
|
};
|
|
26324
|
-
DefaultMathLinePicker = __decorate$
|
|
26617
|
+
DefaultMathLinePicker = __decorate$L([injectable(), __param$p(0, inject(LineRender)), __metadata$C("design:paramtypes", [Object])], DefaultMathLinePicker);
|
|
26325
26618
|
|
|
26326
26619
|
let loadLinePick$1 = !1;
|
|
26327
26620
|
const lineMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26328
26621
|
loadLinePick$1 || (loadLinePick$1 = !0, bind(MathLinePicker).to(DefaultMathLinePicker).inSingletonScope(), bind(MathPickerContribution).toService(MathLinePicker));
|
|
26329
26622
|
});
|
|
26330
26623
|
|
|
26331
|
-
var __decorate$
|
|
26624
|
+
var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26332
26625
|
var d,
|
|
26333
26626
|
c = arguments.length,
|
|
26334
26627
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26335
26628
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26336
26629
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26337
26630
|
},
|
|
26338
|
-
__metadata$
|
|
26631
|
+
__metadata$B = undefined && undefined.__metadata || function (k, v) {
|
|
26339
26632
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26340
26633
|
},
|
|
26341
|
-
__param$
|
|
26634
|
+
__param$o = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26342
26635
|
return function (target, key) {
|
|
26343
26636
|
decorator(target, key, paramIndex);
|
|
26344
26637
|
};
|
|
@@ -26348,24 +26641,24 @@ let DefaultMathPolygonPicker = class extends PickerBase {
|
|
|
26348
26641
|
super(), this.canvasRenderer = canvasRenderer, this.type = "polygon", this.numberType = POLYGON_NUMBER_TYPE;
|
|
26349
26642
|
}
|
|
26350
26643
|
};
|
|
26351
|
-
DefaultMathPolygonPicker = __decorate$
|
|
26644
|
+
DefaultMathPolygonPicker = __decorate$K([injectable(), __param$o(0, inject(PolygonRender)), __metadata$B("design:paramtypes", [Object])], DefaultMathPolygonPicker);
|
|
26352
26645
|
|
|
26353
26646
|
let loadPolygonPick$1 = !1;
|
|
26354
26647
|
const polygonMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26355
26648
|
loadPolygonPick$1 || (loadPolygonPick$1 = !0, bind(MathPolygonPicker).to(DefaultMathPolygonPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathPolygonPicker));
|
|
26356
26649
|
});
|
|
26357
26650
|
|
|
26358
|
-
var __decorate$
|
|
26651
|
+
var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26359
26652
|
var d,
|
|
26360
26653
|
c = arguments.length,
|
|
26361
26654
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26362
26655
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26363
26656
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26364
26657
|
},
|
|
26365
|
-
__metadata$
|
|
26658
|
+
__metadata$A = undefined && undefined.__metadata || function (k, v) {
|
|
26366
26659
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26367
26660
|
},
|
|
26368
|
-
__param$
|
|
26661
|
+
__param$n = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26369
26662
|
return function (target, key) {
|
|
26370
26663
|
decorator(target, key, paramIndex);
|
|
26371
26664
|
};
|
|
@@ -26375,7 +26668,7 @@ let DefaultMathPathPicker = class extends PickerBase {
|
|
|
26375
26668
|
super(), this.canvasRenderer = canvasRenderer, this.type = "path", this.numberType = PATH_NUMBER_TYPE;
|
|
26376
26669
|
}
|
|
26377
26670
|
};
|
|
26378
|
-
DefaultMathPathPicker = __decorate$
|
|
26671
|
+
DefaultMathPathPicker = __decorate$J([injectable(), __param$n(0, inject(PathRender)), __metadata$A("design:paramtypes", [Object])], DefaultMathPathPicker);
|
|
26379
26672
|
|
|
26380
26673
|
let loadPathPick$1 = !1;
|
|
26381
26674
|
const pathMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -26430,17 +26723,17 @@ class RectPickerBase {
|
|
|
26430
26723
|
}
|
|
26431
26724
|
}
|
|
26432
26725
|
|
|
26433
|
-
var __decorate$
|
|
26726
|
+
var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26434
26727
|
var d,
|
|
26435
26728
|
c = arguments.length,
|
|
26436
26729
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26437
26730
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26438
26731
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26439
26732
|
},
|
|
26440
|
-
__metadata$
|
|
26733
|
+
__metadata$z = undefined && undefined.__metadata || function (k, v) {
|
|
26441
26734
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26442
26735
|
},
|
|
26443
|
-
__param$
|
|
26736
|
+
__param$m = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26444
26737
|
return function (target, key) {
|
|
26445
26738
|
decorator(target, key, paramIndex);
|
|
26446
26739
|
};
|
|
@@ -26450,7 +26743,7 @@ let DefaultMathRectPicker = class extends RectPickerBase {
|
|
|
26450
26743
|
super(), this.canvasRenderer = canvasRenderer;
|
|
26451
26744
|
}
|
|
26452
26745
|
};
|
|
26453
|
-
DefaultMathRectPicker = __decorate$
|
|
26746
|
+
DefaultMathRectPicker = __decorate$I([injectable(), __param$m(0, inject(RectRender)), __metadata$z("design:paramtypes", [Object])], DefaultMathRectPicker);
|
|
26454
26747
|
|
|
26455
26748
|
let loadRectPick$1 = !1;
|
|
26456
26749
|
const rectMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -26462,17 +26755,17 @@ const richTextMathPickModule = new ContainerModule((bind, unbind, isBound, rebin
|
|
|
26462
26755
|
loadRichTextPick || (loadRichTextPick = !0, bind(MathImagePicker).to(DefaultMathImagePicker).inSingletonScope(), bind(DefaultMathImagePicker).toService(MathImagePicker));
|
|
26463
26756
|
});
|
|
26464
26757
|
|
|
26465
|
-
var __decorate$
|
|
26758
|
+
var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26466
26759
|
var d,
|
|
26467
26760
|
c = arguments.length,
|
|
26468
26761
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26469
26762
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26470
26763
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26471
26764
|
},
|
|
26472
|
-
__metadata$
|
|
26765
|
+
__metadata$y = undefined && undefined.__metadata || function (k, v) {
|
|
26473
26766
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26474
26767
|
},
|
|
26475
|
-
__param$
|
|
26768
|
+
__param$l = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26476
26769
|
return function (target, key) {
|
|
26477
26770
|
decorator(target, key, paramIndex);
|
|
26478
26771
|
};
|
|
@@ -26482,14 +26775,14 @@ let DefaultMathSymbolPicker = class extends PickerBase {
|
|
|
26482
26775
|
super(), this.canvasRenderer = canvasRenderer, this.type = "symbol", this.numberType = SYMBOL_NUMBER_TYPE;
|
|
26483
26776
|
}
|
|
26484
26777
|
};
|
|
26485
|
-
DefaultMathSymbolPicker = __decorate$
|
|
26778
|
+
DefaultMathSymbolPicker = __decorate$H([injectable(), __param$l(0, inject(SymbolRender)), __metadata$y("design:paramtypes", [Object])], DefaultMathSymbolPicker);
|
|
26486
26779
|
|
|
26487
26780
|
let loadSymbolPick$1 = !1;
|
|
26488
26781
|
const symbolMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
26489
26782
|
loadSymbolPick$1 || (loadSymbolPick$1 = !0, bind(MathSymbolPicker).to(DefaultMathSymbolPicker).inSingletonScope(), bind(MathPickerContribution).toService(MathSymbolPicker));
|
|
26490
26783
|
});
|
|
26491
26784
|
|
|
26492
|
-
var __decorate$
|
|
26785
|
+
var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26493
26786
|
var d,
|
|
26494
26787
|
c = arguments.length,
|
|
26495
26788
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26504,7 +26797,7 @@ let DefaultMathTextPicker = class {
|
|
|
26504
26797
|
return !!text.AABBBounds.containsPoint(point);
|
|
26505
26798
|
}
|
|
26506
26799
|
};
|
|
26507
|
-
DefaultMathTextPicker = __decorate$
|
|
26800
|
+
DefaultMathTextPicker = __decorate$G([injectable()], DefaultMathTextPicker);
|
|
26508
26801
|
|
|
26509
26802
|
let loadTextPick$1 = !1;
|
|
26510
26803
|
const textMathPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -26587,14 +26880,14 @@ class CanvasWrapEnableWH {
|
|
|
26587
26880
|
}
|
|
26588
26881
|
}
|
|
26589
26882
|
|
|
26590
|
-
var __decorate$
|
|
26883
|
+
var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26591
26884
|
var d,
|
|
26592
26885
|
c = arguments.length,
|
|
26593
26886
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26594
26887
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26595
26888
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26596
26889
|
},
|
|
26597
|
-
__metadata$
|
|
26890
|
+
__metadata$x = undefined && undefined.__metadata || function (k, v) {
|
|
26598
26891
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26599
26892
|
};
|
|
26600
26893
|
function makeUpCanvas$4(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, pixelRatio) {
|
|
@@ -26676,7 +26969,7 @@ let FeishuEnvContribution = class extends BaseEnvContribution {
|
|
|
26676
26969
|
return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
|
|
26677
26970
|
}
|
|
26678
26971
|
};
|
|
26679
|
-
FeishuEnvContribution = __decorate$
|
|
26972
|
+
FeishuEnvContribution = __decorate$F([injectable(), __metadata$x("design:paramtypes", [])], FeishuEnvContribution);
|
|
26680
26973
|
|
|
26681
26974
|
const feishuEnvModule = new ContainerModule(bind => {
|
|
26682
26975
|
feishuEnvModule.isFeishuBound || (feishuEnvModule.isFeishuBound = !0, bind(FeishuEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(FeishuEnvContribution));
|
|
@@ -26691,7 +26984,7 @@ function initFeishuEnv() {
|
|
|
26691
26984
|
loadFeishuEnv(container);
|
|
26692
26985
|
}
|
|
26693
26986
|
|
|
26694
|
-
var __decorate$
|
|
26987
|
+
var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26695
26988
|
var d,
|
|
26696
26989
|
c = arguments.length,
|
|
26697
26990
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26752,16 +27045,16 @@ let LynxContext2d = class extends BrowserContext2d {
|
|
|
26752
27045
|
}));
|
|
26753
27046
|
}
|
|
26754
27047
|
};
|
|
26755
|
-
LynxContext2d.env = "lynx", LynxContext2d = __decorate$
|
|
27048
|
+
LynxContext2d.env = "lynx", LynxContext2d = __decorate$E([injectable()], LynxContext2d);
|
|
26756
27049
|
|
|
26757
|
-
var __decorate$
|
|
27050
|
+
var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26758
27051
|
var d,
|
|
26759
27052
|
c = arguments.length,
|
|
26760
27053
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26761
27054
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26762
27055
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26763
27056
|
},
|
|
26764
|
-
__metadata$
|
|
27057
|
+
__metadata$w = undefined && undefined.__metadata || function (k, v) {
|
|
26765
27058
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26766
27059
|
};
|
|
26767
27060
|
let LynxCanvas = class extends BaseCanvas {
|
|
@@ -26777,19 +27070,19 @@ let LynxCanvas = class extends BaseCanvas {
|
|
|
26777
27070
|
}
|
|
26778
27071
|
release() {}
|
|
26779
27072
|
};
|
|
26780
|
-
LynxCanvas.env = "lynx", LynxCanvas = __decorate$
|
|
27073
|
+
LynxCanvas.env = "lynx", LynxCanvas = __decorate$D([injectable(), __metadata$w("design:paramtypes", [Object])], LynxCanvas);
|
|
26781
27074
|
|
|
26782
|
-
var __decorate$
|
|
27075
|
+
var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26783
27076
|
var d,
|
|
26784
27077
|
c = arguments.length,
|
|
26785
27078
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26786
27079
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26787
27080
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26788
27081
|
},
|
|
26789
|
-
__metadata$
|
|
27082
|
+
__metadata$v = undefined && undefined.__metadata || function (k, v) {
|
|
26790
27083
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26791
27084
|
},
|
|
26792
|
-
__param$
|
|
27085
|
+
__param$k = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
26793
27086
|
return function (target, key) {
|
|
26794
27087
|
decorator(target, key, paramIndex);
|
|
26795
27088
|
};
|
|
@@ -26927,21 +27220,21 @@ let LynxWindowHandlerContribution = class extends BaseWindowHandlerContribution
|
|
|
26927
27220
|
context.nativeContext.save(), context.nativeContext.setTransform(dpr, 0, 0, dpr, 0, 0), context.clearRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1), color && (context.fillStyle = color, context.fillRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1)), context.nativeContext.restore();
|
|
26928
27221
|
}
|
|
26929
27222
|
};
|
|
26930
|
-
LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$
|
|
27223
|
+
LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$C([injectable(), __param$k(0, inject(VGlobal)), __metadata$v("design:paramtypes", [Object])], LynxWindowHandlerContribution);
|
|
26931
27224
|
const lynxWindowModule = new ContainerModule(bind => {
|
|
26932
27225
|
bind(LynxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(LynxWindowHandlerContribution)).whenTargetNamed(LynxWindowHandlerContribution.env);
|
|
26933
27226
|
});
|
|
26934
27227
|
|
|
26935
27228
|
const lynxCanvasModule = createModule(LynxCanvas, LynxContext2d);
|
|
26936
27229
|
|
|
26937
|
-
var __decorate$
|
|
27230
|
+
var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26938
27231
|
var d,
|
|
26939
27232
|
c = arguments.length,
|
|
26940
27233
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
26941
27234
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
26942
27235
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26943
27236
|
},
|
|
26944
|
-
__metadata$
|
|
27237
|
+
__metadata$u = undefined && undefined.__metadata || function (k, v) {
|
|
26945
27238
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
26946
27239
|
};
|
|
26947
27240
|
let ng = !1;
|
|
@@ -27051,7 +27344,7 @@ let LynxEnvContribution = class extends BaseEnvContribution {
|
|
|
27051
27344
|
}
|
|
27052
27345
|
release() {}
|
|
27053
27346
|
};
|
|
27054
|
-
LynxEnvContribution = __decorate$
|
|
27347
|
+
LynxEnvContribution = __decorate$B([injectable(), __metadata$u("design:paramtypes", [])], LynxEnvContribution);
|
|
27055
27348
|
|
|
27056
27349
|
const lynxEnvModule = new ContainerModule(bind => {
|
|
27057
27350
|
lynxEnvModule.isLynxBound || (lynxEnvModule.isLynxBound = !0, bind(LynxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(LynxEnvContribution));
|
|
@@ -27066,14 +27359,14 @@ function initLynxEnv() {
|
|
|
27066
27359
|
loadLynxEnv(container);
|
|
27067
27360
|
}
|
|
27068
27361
|
|
|
27069
|
-
var __decorate$
|
|
27362
|
+
var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27070
27363
|
var d,
|
|
27071
27364
|
c = arguments.length,
|
|
27072
27365
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27073
27366
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27074
27367
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27075
27368
|
},
|
|
27076
|
-
__metadata$
|
|
27369
|
+
__metadata$t = undefined && undefined.__metadata || function (k, v) {
|
|
27077
27370
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27078
27371
|
};
|
|
27079
27372
|
let NodeContext2d = class extends BrowserContext2d {
|
|
@@ -27085,16 +27378,16 @@ let NodeContext2d = class extends BrowserContext2d {
|
|
|
27085
27378
|
}
|
|
27086
27379
|
release() {}
|
|
27087
27380
|
};
|
|
27088
|
-
NodeContext2d.env = "node", NodeContext2d = __decorate$
|
|
27381
|
+
NodeContext2d.env = "node", NodeContext2d = __decorate$A([injectable(), __metadata$t("design:paramtypes", [Object, Number])], NodeContext2d);
|
|
27089
27382
|
|
|
27090
|
-
var __decorate$
|
|
27383
|
+
var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27091
27384
|
var d,
|
|
27092
27385
|
c = arguments.length,
|
|
27093
27386
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27094
27387
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27095
27388
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27096
27389
|
},
|
|
27097
|
-
__metadata$
|
|
27390
|
+
__metadata$s = undefined && undefined.__metadata || function (k, v) {
|
|
27098
27391
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27099
27392
|
};
|
|
27100
27393
|
let NodeCanvas = class extends BaseCanvas {
|
|
@@ -27108,21 +27401,21 @@ let NodeCanvas = class extends BaseCanvas {
|
|
|
27108
27401
|
this._nativeCanvas.release && isFunction$1(this._nativeCanvas.release) && this._nativeCanvas.release();
|
|
27109
27402
|
}
|
|
27110
27403
|
};
|
|
27111
|
-
NodeCanvas.env = "node", NodeCanvas = __decorate$
|
|
27404
|
+
NodeCanvas.env = "node", NodeCanvas = __decorate$z([injectable(), __metadata$s("design:paramtypes", [Object])], NodeCanvas);
|
|
27112
27405
|
|
|
27113
27406
|
const nodeCanvasModule = createModule(NodeCanvas, NodeContext2d);
|
|
27114
27407
|
|
|
27115
|
-
var __decorate$
|
|
27408
|
+
var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27116
27409
|
var d,
|
|
27117
27410
|
c = arguments.length,
|
|
27118
27411
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27119
27412
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27120
27413
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27121
27414
|
},
|
|
27122
|
-
__metadata$
|
|
27415
|
+
__metadata$r = undefined && undefined.__metadata || function (k, v) {
|
|
27123
27416
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27124
27417
|
},
|
|
27125
|
-
__param$
|
|
27418
|
+
__param$j = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
27126
27419
|
return function (target, key) {
|
|
27127
27420
|
decorator(target, key, paramIndex);
|
|
27128
27421
|
};
|
|
@@ -27213,12 +27506,12 @@ let NodeWindowHandlerContribution = class extends BaseWindowHandlerContribution
|
|
|
27213
27506
|
}
|
|
27214
27507
|
clearViewBox(color) {}
|
|
27215
27508
|
};
|
|
27216
|
-
NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$
|
|
27509
|
+
NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$y([injectable(), __param$j(0, inject(VGlobal)), __metadata$r("design:paramtypes", [Object])], NodeWindowHandlerContribution);
|
|
27217
27510
|
const nodeWindowModule = new ContainerModule(bind => {
|
|
27218
27511
|
bind(NodeWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(NodeWindowHandlerContribution)).whenTargetNamed(NodeWindowHandlerContribution.env);
|
|
27219
27512
|
});
|
|
27220
27513
|
|
|
27221
|
-
var __decorate$
|
|
27514
|
+
var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27222
27515
|
var d,
|
|
27223
27516
|
c = arguments.length,
|
|
27224
27517
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27304,7 +27597,7 @@ let NodeEnvContribution = class extends BaseEnvContribution {
|
|
|
27304
27597
|
release() {}
|
|
27305
27598
|
createOffscreenCanvas(params) {}
|
|
27306
27599
|
};
|
|
27307
|
-
NodeEnvContribution = __decorate$
|
|
27600
|
+
NodeEnvContribution = __decorate$x([injectable()], NodeEnvContribution);
|
|
27308
27601
|
|
|
27309
27602
|
const nodeEnvModule = new ContainerModule(bind => {
|
|
27310
27603
|
nodeEnvModule.isNodeBound || (nodeEnvModule.isNodeBound = !0, bind(NodeEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(NodeEnvContribution));
|
|
@@ -27318,7 +27611,7 @@ function initNodeEnv() {
|
|
|
27318
27611
|
loadNodeEnv(container);
|
|
27319
27612
|
}
|
|
27320
27613
|
|
|
27321
|
-
var __decorate$
|
|
27614
|
+
var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27322
27615
|
var d,
|
|
27323
27616
|
c = arguments.length,
|
|
27324
27617
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27407,16 +27700,16 @@ let TaroContext2d = class extends BrowserContext2d {
|
|
|
27407
27700
|
return this.nativeContext.createCircularGradient && this.nativeContext.createCircularGradient(x0, y0, r0, x1, y1, r1);
|
|
27408
27701
|
}
|
|
27409
27702
|
};
|
|
27410
|
-
TaroContext2d.env = "taro", TaroContext2d = __decorate$
|
|
27703
|
+
TaroContext2d.env = "taro", TaroContext2d = __decorate$w([injectable()], TaroContext2d);
|
|
27411
27704
|
|
|
27412
|
-
var __decorate$
|
|
27705
|
+
var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27413
27706
|
var d,
|
|
27414
27707
|
c = arguments.length,
|
|
27415
27708
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27416
27709
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27417
27710
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27418
27711
|
},
|
|
27419
|
-
__metadata$
|
|
27712
|
+
__metadata$q = undefined && undefined.__metadata || function (k, v) {
|
|
27420
27713
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27421
27714
|
};
|
|
27422
27715
|
let TaroCanvas = class extends BaseCanvas {
|
|
@@ -27428,21 +27721,21 @@ let TaroCanvas = class extends BaseCanvas {
|
|
|
27428
27721
|
}
|
|
27429
27722
|
release() {}
|
|
27430
27723
|
};
|
|
27431
|
-
TaroCanvas.env = "taro", TaroCanvas = __decorate$
|
|
27724
|
+
TaroCanvas.env = "taro", TaroCanvas = __decorate$v([injectable(), __metadata$q("design:paramtypes", [Object])], TaroCanvas);
|
|
27432
27725
|
|
|
27433
27726
|
const taroCanvasModule = createModule(TaroCanvas, TaroContext2d);
|
|
27434
27727
|
|
|
27435
|
-
var __decorate$
|
|
27728
|
+
var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27436
27729
|
var d,
|
|
27437
27730
|
c = arguments.length,
|
|
27438
27731
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27439
27732
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27440
27733
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27441
27734
|
},
|
|
27442
|
-
__metadata$
|
|
27735
|
+
__metadata$p = undefined && undefined.__metadata || function (k, v) {
|
|
27443
27736
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27444
27737
|
},
|
|
27445
|
-
__param$
|
|
27738
|
+
__param$i = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
27446
27739
|
return function (target, key) {
|
|
27447
27740
|
decorator(target, key, paramIndex);
|
|
27448
27741
|
};
|
|
@@ -27588,19 +27881,19 @@ let TaroWindowHandlerContribution = class extends BaseWindowHandlerContribution
|
|
|
27588
27881
|
context.nativeContext.save(), context.nativeContext.setTransform(dpr, 0, 0, dpr, 0, 0), context.clearRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1), color && (context.fillStyle = color, context.fillRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1)), context.nativeContext.restore();
|
|
27589
27882
|
}
|
|
27590
27883
|
};
|
|
27591
|
-
TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$
|
|
27884
|
+
TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$u([injectable(), __param$i(0, inject(VGlobal)), __metadata$p("design:paramtypes", [Object])], TaroWindowHandlerContribution);
|
|
27592
27885
|
const taroWindowModule = new ContainerModule(bind => {
|
|
27593
27886
|
bind(TaroWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TaroWindowHandlerContribution)).whenTargetNamed(TaroWindowHandlerContribution.env);
|
|
27594
27887
|
});
|
|
27595
27888
|
|
|
27596
|
-
var __decorate$
|
|
27889
|
+
var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27597
27890
|
var d,
|
|
27598
27891
|
c = arguments.length,
|
|
27599
27892
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27600
27893
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27601
27894
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27602
27895
|
},
|
|
27603
|
-
__metadata$
|
|
27896
|
+
__metadata$o = undefined && undefined.__metadata || function (k, v) {
|
|
27604
27897
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27605
27898
|
};
|
|
27606
27899
|
function makeUpCanvas$2(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, taro, dpr) {
|
|
@@ -27697,7 +27990,7 @@ let TaroEnvContribution = class extends BaseEnvContribution {
|
|
|
27697
27990
|
}
|
|
27698
27991
|
release() {}
|
|
27699
27992
|
};
|
|
27700
|
-
TaroEnvContribution = __decorate$
|
|
27993
|
+
TaroEnvContribution = __decorate$t([injectable(), __metadata$o("design:paramtypes", [])], TaroEnvContribution);
|
|
27701
27994
|
|
|
27702
27995
|
const taroEnvModule = new ContainerModule(bind => {
|
|
27703
27996
|
taroEnvModule.isTaroBound || (taroEnvModule.isTaroBound = !0, bind(TaroEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TaroEnvContribution));
|
|
@@ -27712,7 +28005,7 @@ function initTaroEnv() {
|
|
|
27712
28005
|
loadTaroEnv(container);
|
|
27713
28006
|
}
|
|
27714
28007
|
|
|
27715
|
-
var __decorate$
|
|
28008
|
+
var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27716
28009
|
var d,
|
|
27717
28010
|
c = arguments.length,
|
|
27718
28011
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -27725,16 +28018,16 @@ let WxContext2d = class extends BrowserContext2d {
|
|
|
27725
28018
|
return null;
|
|
27726
28019
|
}
|
|
27727
28020
|
};
|
|
27728
|
-
WxContext2d.env = "wx", WxContext2d = __decorate$
|
|
28021
|
+
WxContext2d.env = "wx", WxContext2d = __decorate$s([injectable()], WxContext2d);
|
|
27729
28022
|
|
|
27730
|
-
var __decorate$
|
|
28023
|
+
var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27731
28024
|
var d,
|
|
27732
28025
|
c = arguments.length,
|
|
27733
28026
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27734
28027
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27735
28028
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27736
28029
|
},
|
|
27737
|
-
__metadata$
|
|
28030
|
+
__metadata$n = undefined && undefined.__metadata || function (k, v) {
|
|
27738
28031
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27739
28032
|
};
|
|
27740
28033
|
let WxCanvas = class extends BaseCanvas {
|
|
@@ -27746,21 +28039,21 @@ let WxCanvas = class extends BaseCanvas {
|
|
|
27746
28039
|
}
|
|
27747
28040
|
release() {}
|
|
27748
28041
|
};
|
|
27749
|
-
WxCanvas.env = "wx", WxCanvas = __decorate$
|
|
28042
|
+
WxCanvas.env = "wx", WxCanvas = __decorate$r([injectable(), __metadata$n("design:paramtypes", [Object])], WxCanvas);
|
|
27750
28043
|
|
|
27751
28044
|
const wxCanvasModule = createModule(WxCanvas, WxContext2d);
|
|
27752
28045
|
|
|
27753
|
-
var __decorate$
|
|
28046
|
+
var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27754
28047
|
var d,
|
|
27755
28048
|
c = arguments.length,
|
|
27756
28049
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27757
28050
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27758
28051
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27759
28052
|
},
|
|
27760
|
-
__metadata$
|
|
28053
|
+
__metadata$m = undefined && undefined.__metadata || function (k, v) {
|
|
27761
28054
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27762
28055
|
},
|
|
27763
|
-
__param$
|
|
28056
|
+
__param$h = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
27764
28057
|
return function (target, key) {
|
|
27765
28058
|
decorator(target, key, paramIndex);
|
|
27766
28059
|
};
|
|
@@ -27897,19 +28190,19 @@ let WxWindowHandlerContribution = class extends BaseWindowHandlerContribution {
|
|
|
27897
28190
|
context.nativeContext.save(), context.nativeContext.setTransform(dpr, 0, 0, dpr, 0, 0), context.clearRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1), color && (context.fillStyle = color, context.fillRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1)), context.nativeContext.restore();
|
|
27898
28191
|
}
|
|
27899
28192
|
};
|
|
27900
|
-
WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$
|
|
28193
|
+
WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$q([injectable(), __param$h(0, inject(VGlobal)), __metadata$m("design:paramtypes", [Object])], WxWindowHandlerContribution);
|
|
27901
28194
|
const wxWindowModule = new ContainerModule(bind => {
|
|
27902
28195
|
bind(WxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(WxWindowHandlerContribution)).whenTargetNamed(WxWindowHandlerContribution.env);
|
|
27903
28196
|
});
|
|
27904
28197
|
|
|
27905
|
-
var __decorate$
|
|
28198
|
+
var __decorate$p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
27906
28199
|
var d,
|
|
27907
28200
|
c = arguments.length,
|
|
27908
28201
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
27909
28202
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
27910
28203
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27911
28204
|
},
|
|
27912
|
-
__metadata$
|
|
28205
|
+
__metadata$l = undefined && undefined.__metadata || function (k, v) {
|
|
27913
28206
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
27914
28207
|
},
|
|
27915
28208
|
__awaiter$1 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
@@ -28023,7 +28316,7 @@ let WxEnvContribution = class extends BaseEnvContribution {
|
|
|
28023
28316
|
return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
|
|
28024
28317
|
}
|
|
28025
28318
|
};
|
|
28026
|
-
WxEnvContribution = __decorate$
|
|
28319
|
+
WxEnvContribution = __decorate$p([injectable(), __metadata$l("design:paramtypes", [])], WxEnvContribution);
|
|
28027
28320
|
|
|
28028
28321
|
const wxEnvModule = new ContainerModule(bind => {
|
|
28029
28322
|
wxEnvModule._isWxBound || (wxEnvModule._isWxBound = !0, bind(WxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(WxEnvContribution));
|
|
@@ -28051,7 +28344,7 @@ function initAllEnv() {
|
|
|
28051
28344
|
loadAllEnv(container);
|
|
28052
28345
|
}
|
|
28053
28346
|
|
|
28054
|
-
var __decorate$
|
|
28347
|
+
var __decorate$o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28055
28348
|
var d,
|
|
28056
28349
|
c = arguments.length,
|
|
28057
28350
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28059,16 +28352,16 @@ var __decorate$q = undefined && undefined.__decorate || function (decorators, ta
|
|
|
28059
28352
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28060
28353
|
};
|
|
28061
28354
|
let TTContext2d = class extends FeishuContext2d {};
|
|
28062
|
-
TTContext2d.env = "tt", TTContext2d = __decorate$
|
|
28355
|
+
TTContext2d.env = "tt", TTContext2d = __decorate$o([injectable()], TTContext2d);
|
|
28063
28356
|
|
|
28064
|
-
var __decorate$
|
|
28357
|
+
var __decorate$n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28065
28358
|
var d,
|
|
28066
28359
|
c = arguments.length,
|
|
28067
28360
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28068
28361
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28069
28362
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28070
28363
|
},
|
|
28071
|
-
__metadata$
|
|
28364
|
+
__metadata$k = undefined && undefined.__metadata || function (k, v) {
|
|
28072
28365
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28073
28366
|
};
|
|
28074
28367
|
let TTCanvas = class extends BaseCanvas {
|
|
@@ -28080,21 +28373,21 @@ let TTCanvas = class extends BaseCanvas {
|
|
|
28080
28373
|
}
|
|
28081
28374
|
release() {}
|
|
28082
28375
|
};
|
|
28083
|
-
TTCanvas.env = "tt", TTCanvas = __decorate$
|
|
28376
|
+
TTCanvas.env = "tt", TTCanvas = __decorate$n([injectable(), __metadata$k("design:paramtypes", [Object])], TTCanvas);
|
|
28084
28377
|
|
|
28085
28378
|
const ttCanvasModule = createModule(TTCanvas, TTContext2d);
|
|
28086
28379
|
|
|
28087
|
-
var __decorate$
|
|
28380
|
+
var __decorate$m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28088
28381
|
var d,
|
|
28089
28382
|
c = arguments.length,
|
|
28090
28383
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28091
28384
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28092
28385
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28093
28386
|
},
|
|
28094
|
-
__metadata$
|
|
28387
|
+
__metadata$j = undefined && undefined.__metadata || function (k, v) {
|
|
28095
28388
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28096
28389
|
},
|
|
28097
|
-
__param$
|
|
28390
|
+
__param$g = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28098
28391
|
return function (target, key) {
|
|
28099
28392
|
decorator(target, key, paramIndex);
|
|
28100
28393
|
};
|
|
@@ -28230,19 +28523,19 @@ let TTWindowHandlerContribution = class extends BaseWindowHandlerContribution {
|
|
|
28230
28523
|
context.nativeContext.save(), context.nativeContext.setTransform(dpr, 0, 0, dpr, 0, 0), context.clearRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1), color && (context.fillStyle = color, context.fillRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1)), context.nativeContext.restore();
|
|
28231
28524
|
}
|
|
28232
28525
|
};
|
|
28233
|
-
TTWindowHandlerContribution.env = "tt", TTWindowHandlerContribution = __decorate$
|
|
28526
|
+
TTWindowHandlerContribution.env = "tt", TTWindowHandlerContribution = __decorate$m([injectable(), __param$g(0, inject(VGlobal)), __metadata$j("design:paramtypes", [Object])], TTWindowHandlerContribution);
|
|
28234
28527
|
const ttWindowModule = new ContainerModule(bind => {
|
|
28235
28528
|
bind(TTWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(TTWindowHandlerContribution)).whenTargetNamed(TTWindowHandlerContribution.env);
|
|
28236
28529
|
});
|
|
28237
28530
|
|
|
28238
|
-
var __decorate$
|
|
28531
|
+
var __decorate$l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28239
28532
|
var d,
|
|
28240
28533
|
c = arguments.length,
|
|
28241
28534
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28242
28535
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28243
28536
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28244
28537
|
},
|
|
28245
|
-
__metadata$
|
|
28538
|
+
__metadata$i = undefined && undefined.__metadata || function (k, v) {
|
|
28246
28539
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28247
28540
|
},
|
|
28248
28541
|
__awaiter = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
@@ -28352,7 +28645,7 @@ let TTEnvContribution = class extends BaseEnvContribution {
|
|
|
28352
28645
|
return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
|
|
28353
28646
|
}
|
|
28354
28647
|
};
|
|
28355
|
-
TTEnvContribution = __decorate$
|
|
28648
|
+
TTEnvContribution = __decorate$l([injectable(), __metadata$i("design:paramtypes", [])], TTEnvContribution);
|
|
28356
28649
|
|
|
28357
28650
|
const ttEnvModule = new ContainerModule(bind => {
|
|
28358
28651
|
ttEnvModule.isTTBound || (ttEnvModule.isTTBound = !0, bind(TTEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TTEnvContribution));
|
|
@@ -28367,7 +28660,7 @@ function initTTEnv() {
|
|
|
28367
28660
|
loadTTEnv(container);
|
|
28368
28661
|
}
|
|
28369
28662
|
|
|
28370
|
-
var __decorate$
|
|
28663
|
+
var __decorate$k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28371
28664
|
var d,
|
|
28372
28665
|
c = arguments.length,
|
|
28373
28666
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28452,16 +28745,16 @@ let HarmonyContext2d = class extends BrowserContext2d {
|
|
|
28452
28745
|
}
|
|
28453
28746
|
draw() {}
|
|
28454
28747
|
};
|
|
28455
|
-
HarmonyContext2d.env = "harmony", HarmonyContext2d = __decorate$
|
|
28748
|
+
HarmonyContext2d.env = "harmony", HarmonyContext2d = __decorate$k([injectable()], HarmonyContext2d);
|
|
28456
28749
|
|
|
28457
|
-
var __decorate$
|
|
28750
|
+
var __decorate$j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28458
28751
|
var d,
|
|
28459
28752
|
c = arguments.length,
|
|
28460
28753
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28461
28754
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28462
28755
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28463
28756
|
},
|
|
28464
|
-
__metadata$
|
|
28757
|
+
__metadata$h = undefined && undefined.__metadata || function (k, v) {
|
|
28465
28758
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28466
28759
|
};
|
|
28467
28760
|
let HarmonyCanvas = class extends BaseCanvas {
|
|
@@ -28474,19 +28767,19 @@ let HarmonyCanvas = class extends BaseCanvas {
|
|
|
28474
28767
|
resize(width, height) {}
|
|
28475
28768
|
release() {}
|
|
28476
28769
|
};
|
|
28477
|
-
HarmonyCanvas.env = "harmony", HarmonyCanvas = __decorate$
|
|
28770
|
+
HarmonyCanvas.env = "harmony", HarmonyCanvas = __decorate$j([injectable(), __metadata$h("design:paramtypes", [Object])], HarmonyCanvas);
|
|
28478
28771
|
|
|
28479
|
-
var __decorate$
|
|
28772
|
+
var __decorate$i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28480
28773
|
var d,
|
|
28481
28774
|
c = arguments.length,
|
|
28482
28775
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28483
28776
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28484
28777
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28485
28778
|
},
|
|
28486
|
-
__metadata$
|
|
28779
|
+
__metadata$g = undefined && undefined.__metadata || function (k, v) {
|
|
28487
28780
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28488
28781
|
},
|
|
28489
|
-
__param$
|
|
28782
|
+
__param$f = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28490
28783
|
return function (target, key) {
|
|
28491
28784
|
decorator(target, key, paramIndex);
|
|
28492
28785
|
};
|
|
@@ -28623,21 +28916,21 @@ let HarmonyWindowHandlerContribution = class extends BaseWindowHandlerContributi
|
|
|
28623
28916
|
context.nativeContext.save(), context.nativeContext.setTransform(dpr, 0, 0, dpr, 0, 0), context.clearRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1), color && (context.fillStyle = color, context.fillRect(vb.x1, vb.y1, vb.x2 - vb.x1, vb.y2 - vb.y1)), context.nativeContext.restore();
|
|
28624
28917
|
}
|
|
28625
28918
|
};
|
|
28626
|
-
HarmonyWindowHandlerContribution.env = "harmony", HarmonyWindowHandlerContribution = __decorate$
|
|
28919
|
+
HarmonyWindowHandlerContribution.env = "harmony", HarmonyWindowHandlerContribution = __decorate$i([injectable(), __param$f(0, inject(VGlobal)), __metadata$g("design:paramtypes", [Object])], HarmonyWindowHandlerContribution);
|
|
28627
28920
|
const harmonyWindowModule = new ContainerModule(bind => {
|
|
28628
28921
|
bind(HarmonyWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(ctx => ctx.container.get(HarmonyWindowHandlerContribution)).whenTargetNamed(HarmonyWindowHandlerContribution.env);
|
|
28629
28922
|
});
|
|
28630
28923
|
|
|
28631
28924
|
const harmonyCanvasModule = createModule(HarmonyCanvas, HarmonyContext2d);
|
|
28632
28925
|
|
|
28633
|
-
var __decorate$
|
|
28926
|
+
var __decorate$h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28634
28927
|
var d,
|
|
28635
28928
|
c = arguments.length,
|
|
28636
28929
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28637
28930
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28638
28931
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28639
28932
|
},
|
|
28640
|
-
__metadata$
|
|
28933
|
+
__metadata$f = undefined && undefined.__metadata || function (k, v) {
|
|
28641
28934
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28642
28935
|
};
|
|
28643
28936
|
function createCanvas(width, height, id) {
|
|
@@ -28718,7 +29011,7 @@ let HarmonyEnvContribution = class extends BaseEnvContribution {
|
|
|
28718
29011
|
}
|
|
28719
29012
|
release() {}
|
|
28720
29013
|
};
|
|
28721
|
-
HarmonyEnvContribution = __decorate$
|
|
29014
|
+
HarmonyEnvContribution = __decorate$h([injectable(), __metadata$f("design:paramtypes", [])], HarmonyEnvContribution);
|
|
28722
29015
|
|
|
28723
29016
|
const harmonyEnvModule = new ContainerModule(bind => {
|
|
28724
29017
|
harmonyEnvModule.isHarmonyBound || (harmonyEnvModule.isHarmonyBound = !0, bind(HarmonyEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(HarmonyEnvContribution));
|
|
@@ -28733,17 +29026,17 @@ function initHarmonyEnv() {
|
|
|
28733
29026
|
loadHarmonyEnv(container);
|
|
28734
29027
|
}
|
|
28735
29028
|
|
|
28736
|
-
var __decorate$
|
|
29029
|
+
var __decorate$g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28737
29030
|
var d,
|
|
28738
29031
|
c = arguments.length,
|
|
28739
29032
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28740
29033
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28741
29034
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28742
29035
|
},
|
|
28743
|
-
__metadata$
|
|
29036
|
+
__metadata$e = undefined && undefined.__metadata || function (k, v) {
|
|
28744
29037
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28745
29038
|
},
|
|
28746
|
-
__param$
|
|
29039
|
+
__param$e = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28747
29040
|
return function (target, key) {
|
|
28748
29041
|
decorator(target, key, paramIndex);
|
|
28749
29042
|
};
|
|
@@ -28753,24 +29046,24 @@ let DefaultCanvasArcPicker = class extends PickerBase {
|
|
|
28753
29046
|
super(), this.canvasRenderer = canvasRenderer, this.type = "arc", this.numberType = ARC_NUMBER_TYPE;
|
|
28754
29047
|
}
|
|
28755
29048
|
};
|
|
28756
|
-
DefaultCanvasArcPicker = __decorate$
|
|
29049
|
+
DefaultCanvasArcPicker = __decorate$g([injectable(), __param$e(0, inject(ArcRender)), __metadata$e("design:paramtypes", [Object])], DefaultCanvasArcPicker);
|
|
28757
29050
|
|
|
28758
29051
|
let loadArcPick = !1;
|
|
28759
29052
|
const arcCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
28760
29053
|
loadArcPick || (loadArcPick = !0, bind(CanvasArcPicker).to(DefaultCanvasArcPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasArcPicker));
|
|
28761
29054
|
});
|
|
28762
29055
|
|
|
28763
|
-
var __decorate$
|
|
29056
|
+
var __decorate$f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28764
29057
|
var d,
|
|
28765
29058
|
c = arguments.length,
|
|
28766
29059
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28767
29060
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28768
29061
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28769
29062
|
},
|
|
28770
|
-
__metadata$
|
|
29063
|
+
__metadata$d = undefined && undefined.__metadata || function (k, v) {
|
|
28771
29064
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28772
29065
|
},
|
|
28773
|
-
__param$
|
|
29066
|
+
__param$d = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28774
29067
|
return function (target, key) {
|
|
28775
29068
|
decorator(target, key, paramIndex);
|
|
28776
29069
|
};
|
|
@@ -28780,7 +29073,7 @@ let DefaultCanvasRectPicker = class extends RectPickerBase {
|
|
|
28780
29073
|
super(), this.canvasRenderer = canvasRenderer;
|
|
28781
29074
|
}
|
|
28782
29075
|
};
|
|
28783
|
-
DefaultCanvasRectPicker = __decorate$
|
|
29076
|
+
DefaultCanvasRectPicker = __decorate$f([injectable(), __param$d(0, inject(RectRender)), __metadata$d("design:paramtypes", [Object])], DefaultCanvasRectPicker);
|
|
28784
29077
|
|
|
28785
29078
|
let loadRectPick = !1;
|
|
28786
29079
|
const rectCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -28822,17 +29115,17 @@ class BaseLinePicker extends BaseRender {
|
|
|
28822
29115
|
}
|
|
28823
29116
|
}
|
|
28824
29117
|
|
|
28825
|
-
var __decorate$
|
|
29118
|
+
var __decorate$e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28826
29119
|
var d,
|
|
28827
29120
|
c = arguments.length,
|
|
28828
29121
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28829
29122
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28830
29123
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28831
29124
|
},
|
|
28832
|
-
__metadata$
|
|
29125
|
+
__metadata$c = undefined && undefined.__metadata || function (k, v) {
|
|
28833
29126
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28834
29127
|
},
|
|
28835
|
-
__param$
|
|
29128
|
+
__param$c = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28836
29129
|
return function (target, key) {
|
|
28837
29130
|
decorator(target, key, paramIndex);
|
|
28838
29131
|
};
|
|
@@ -28842,24 +29135,24 @@ let DefaultCanvasLinePicker = class extends BaseLinePicker {
|
|
|
28842
29135
|
super(), this.canvasRenderer = canvasRenderer, this.type = "line", this.numberType = LINE_NUMBER_TYPE;
|
|
28843
29136
|
}
|
|
28844
29137
|
};
|
|
28845
|
-
DefaultCanvasLinePicker = __decorate$
|
|
29138
|
+
DefaultCanvasLinePicker = __decorate$e([injectable(), __param$c(0, inject(LineRender)), __metadata$c("design:paramtypes", [Object])], DefaultCanvasLinePicker);
|
|
28846
29139
|
|
|
28847
29140
|
let loadLinePick = !1;
|
|
28848
29141
|
const lineCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
28849
29142
|
loadLinePick || (loadLinePick = !0, bind(CanvasLinePicker).to(DefaultCanvasLinePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasLinePicker));
|
|
28850
29143
|
});
|
|
28851
29144
|
|
|
28852
|
-
var __decorate$
|
|
29145
|
+
var __decorate$d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28853
29146
|
var d,
|
|
28854
29147
|
c = arguments.length,
|
|
28855
29148
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28856
29149
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28857
29150
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28858
29151
|
},
|
|
28859
|
-
__metadata$
|
|
29152
|
+
__metadata$b = undefined && undefined.__metadata || function (k, v) {
|
|
28860
29153
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28861
29154
|
},
|
|
28862
|
-
__param$
|
|
29155
|
+
__param$b = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28863
29156
|
return function (target, key) {
|
|
28864
29157
|
decorator(target, key, paramIndex);
|
|
28865
29158
|
};
|
|
@@ -28869,7 +29162,7 @@ let DefaultCanvasAreaPicker = class extends PickerBase {
|
|
|
28869
29162
|
super(), this.canvasRenderer = canvasRenderer, this.type = "area", this.numberType = AREA_NUMBER_TYPE;
|
|
28870
29163
|
}
|
|
28871
29164
|
};
|
|
28872
|
-
DefaultCanvasAreaPicker = __decorate$
|
|
29165
|
+
DefaultCanvasAreaPicker = __decorate$d([injectable(), __param$b(0, inject(AreaRender)), __metadata$b("design:paramtypes", [Object])], DefaultCanvasAreaPicker);
|
|
28873
29166
|
|
|
28874
29167
|
let loadAreaPick = !1;
|
|
28875
29168
|
const areaCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
@@ -28903,17 +29196,17 @@ class Base3dPicker extends BaseRender {
|
|
|
28903
29196
|
}
|
|
28904
29197
|
}
|
|
28905
29198
|
|
|
28906
|
-
var __decorate$
|
|
29199
|
+
var __decorate$c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28907
29200
|
var d,
|
|
28908
29201
|
c = arguments.length,
|
|
28909
29202
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28910
29203
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28911
29204
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28912
29205
|
},
|
|
28913
|
-
__metadata$
|
|
29206
|
+
__metadata$a = undefined && undefined.__metadata || function (k, v) {
|
|
28914
29207
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28915
29208
|
},
|
|
28916
|
-
__param$
|
|
29209
|
+
__param$a = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28917
29210
|
return function (target, key) {
|
|
28918
29211
|
decorator(target, key, paramIndex);
|
|
28919
29212
|
};
|
|
@@ -28958,24 +29251,24 @@ let DefaultCanvasSymbolPicker = class extends Base3dPicker {
|
|
|
28958
29251
|
}), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
28959
29252
|
}
|
|
28960
29253
|
};
|
|
28961
|
-
DefaultCanvasSymbolPicker = __decorate$
|
|
29254
|
+
DefaultCanvasSymbolPicker = __decorate$c([injectable(), __param$a(0, inject(SymbolRender)), __metadata$a("design:paramtypes", [Object])], DefaultCanvasSymbolPicker);
|
|
28962
29255
|
|
|
28963
29256
|
let loadSymbolPick = !1;
|
|
28964
29257
|
const symbolCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
28965
29258
|
loadSymbolPick || (loadSymbolPick = !0, bind(CanvasSymbolPicker).to(DefaultCanvasSymbolPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasSymbolPicker));
|
|
28966
29259
|
});
|
|
28967
29260
|
|
|
28968
|
-
var __decorate$
|
|
29261
|
+
var __decorate$b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28969
29262
|
var d,
|
|
28970
29263
|
c = arguments.length,
|
|
28971
29264
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28972
29265
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28973
29266
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28974
29267
|
},
|
|
28975
|
-
__metadata$
|
|
29268
|
+
__metadata$9 = undefined && undefined.__metadata || function (k, v) {
|
|
28976
29269
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28977
29270
|
},
|
|
28978
|
-
__param$
|
|
29271
|
+
__param$9 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28979
29272
|
return function (target, key) {
|
|
28980
29273
|
decorator(target, key, paramIndex);
|
|
28981
29274
|
};
|
|
@@ -28985,24 +29278,24 @@ let DefaultCanvasCirclePicker = class extends PickerBase {
|
|
|
28985
29278
|
super(), this.canvasRenderer = canvasRenderer, this.type = "circle", this.numberType = CIRCLE_NUMBER_TYPE;
|
|
28986
29279
|
}
|
|
28987
29280
|
};
|
|
28988
|
-
DefaultCanvasCirclePicker = __decorate$
|
|
29281
|
+
DefaultCanvasCirclePicker = __decorate$b([injectable(), __param$9(0, inject(CircleRender)), __metadata$9("design:paramtypes", [Object])], DefaultCanvasCirclePicker);
|
|
28989
29282
|
|
|
28990
29283
|
let loadCirclePick = !1;
|
|
28991
29284
|
const circleCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
28992
29285
|
loadCirclePick || (loadCirclePick = !0, bind(CanvasCirclePicker).to(DefaultCanvasCirclePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasCirclePicker));
|
|
28993
29286
|
});
|
|
28994
29287
|
|
|
28995
|
-
var __decorate$
|
|
29288
|
+
var __decorate$a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28996
29289
|
var d,
|
|
28997
29290
|
c = arguments.length,
|
|
28998
29291
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28999
29292
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29000
29293
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29001
29294
|
},
|
|
29002
|
-
__metadata$
|
|
29295
|
+
__metadata$8 = undefined && undefined.__metadata || function (k, v) {
|
|
29003
29296
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29004
29297
|
},
|
|
29005
|
-
__param$
|
|
29298
|
+
__param$8 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29006
29299
|
return function (target, key) {
|
|
29007
29300
|
decorator(target, key, paramIndex);
|
|
29008
29301
|
};
|
|
@@ -29055,24 +29348,24 @@ let DefaultCanvasTextPicker = class extends Base3dPicker {
|
|
|
29055
29348
|
}, (context, symbolAttribute, themeAttribute) => picked), this.canvasRenderer.z = 0, pickContext.modelMatrix !== lastModelMatrix && mat4Allocate.free(pickContext.modelMatrix), pickContext.modelMatrix = lastModelMatrix, pickContext.highPerformanceRestore(), picked;
|
|
29056
29349
|
}
|
|
29057
29350
|
};
|
|
29058
|
-
DefaultCanvasTextPicker = __decorate$
|
|
29351
|
+
DefaultCanvasTextPicker = __decorate$a([injectable(), __param$8(0, inject(TextRender)), __metadata$8("design:paramtypes", [Object])], DefaultCanvasTextPicker);
|
|
29059
29352
|
|
|
29060
29353
|
let loadTextPick = !1;
|
|
29061
29354
|
const textCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29062
29355
|
loadTextPick || (loadTextPick = !0, bind(CanvasTextPicker).to(DefaultCanvasTextPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasTextPicker));
|
|
29063
29356
|
});
|
|
29064
29357
|
|
|
29065
|
-
var __decorate$
|
|
29358
|
+
var __decorate$9 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29066
29359
|
var d,
|
|
29067
29360
|
c = arguments.length,
|
|
29068
29361
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29069
29362
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29070
29363
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29071
29364
|
},
|
|
29072
|
-
__metadata$
|
|
29365
|
+
__metadata$7 = undefined && undefined.__metadata || function (k, v) {
|
|
29073
29366
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29074
29367
|
},
|
|
29075
|
-
__param$
|
|
29368
|
+
__param$7 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29076
29369
|
return function (target, key) {
|
|
29077
29370
|
decorator(target, key, paramIndex);
|
|
29078
29371
|
};
|
|
@@ -29082,24 +29375,24 @@ let DefaultCanvasPathPicker = class extends BaseLinePicker {
|
|
|
29082
29375
|
super(), this.canvasRenderer = canvasRenderer, this.type = "path", this.numberType = PATH_NUMBER_TYPE;
|
|
29083
29376
|
}
|
|
29084
29377
|
};
|
|
29085
|
-
DefaultCanvasPathPicker = __decorate$
|
|
29378
|
+
DefaultCanvasPathPicker = __decorate$9([injectable(), __param$7(0, inject(PathRender)), __metadata$7("design:paramtypes", [Object])], DefaultCanvasPathPicker);
|
|
29086
29379
|
|
|
29087
29380
|
let loadPathPick = !1;
|
|
29088
29381
|
const pathCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29089
29382
|
loadPathPick || (loadPathPick = !0, bind(CanvasPathPicker).to(DefaultCanvasPathPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPathPicker));
|
|
29090
29383
|
});
|
|
29091
29384
|
|
|
29092
|
-
var __decorate$
|
|
29385
|
+
var __decorate$8 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29093
29386
|
var d,
|
|
29094
29387
|
c = arguments.length,
|
|
29095
29388
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29096
29389
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29097
29390
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29098
29391
|
},
|
|
29099
|
-
__metadata$
|
|
29392
|
+
__metadata$6 = undefined && undefined.__metadata || function (k, v) {
|
|
29100
29393
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29101
29394
|
},
|
|
29102
|
-
__param$
|
|
29395
|
+
__param$6 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29103
29396
|
return function (target, key) {
|
|
29104
29397
|
decorator(target, key, paramIndex);
|
|
29105
29398
|
};
|
|
@@ -29109,24 +29402,24 @@ let DefaultCanvasPolygonPicker = class extends PickerBase {
|
|
|
29109
29402
|
super(), this.canvasRenderer = canvasRenderer, this.type = "polygon", this.numberType = POLYGON_NUMBER_TYPE;
|
|
29110
29403
|
}
|
|
29111
29404
|
};
|
|
29112
|
-
DefaultCanvasPolygonPicker = __decorate$
|
|
29405
|
+
DefaultCanvasPolygonPicker = __decorate$8([injectable(), __param$6(0, inject(PolygonRender)), __metadata$6("design:paramtypes", [Object])], DefaultCanvasPolygonPicker);
|
|
29113
29406
|
|
|
29114
29407
|
let loadPolygonPick = !1;
|
|
29115
29408
|
const polygonCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29116
29409
|
loadPolygonPick || (loadPolygonPick = !0, bind(CanvasPolygonPicker).to(DefaultCanvasPolygonPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPolygonPicker));
|
|
29117
29410
|
});
|
|
29118
29411
|
|
|
29119
|
-
var __decorate$
|
|
29412
|
+
var __decorate$7 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29120
29413
|
var d,
|
|
29121
29414
|
c = arguments.length,
|
|
29122
29415
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29123
29416
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29124
29417
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29125
29418
|
},
|
|
29126
|
-
__metadata$
|
|
29419
|
+
__metadata$5 = undefined && undefined.__metadata || function (k, v) {
|
|
29127
29420
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29128
29421
|
},
|
|
29129
|
-
__param$
|
|
29422
|
+
__param$5 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29130
29423
|
return function (target, key) {
|
|
29131
29424
|
decorator(target, key, paramIndex);
|
|
29132
29425
|
};
|
|
@@ -29136,24 +29429,24 @@ let DefaultCanvasGlyphPicker = class extends GlyphPickerBase {
|
|
|
29136
29429
|
super(), this.canvasRenderer = canvasRenderer;
|
|
29137
29430
|
}
|
|
29138
29431
|
};
|
|
29139
|
-
DefaultCanvasGlyphPicker = __decorate$
|
|
29432
|
+
DefaultCanvasGlyphPicker = __decorate$7([injectable(), __param$5(0, inject(GlyphRender)), __metadata$5("design:paramtypes", [Object])], DefaultCanvasGlyphPicker);
|
|
29140
29433
|
|
|
29141
29434
|
let loadGlyphPick = !1;
|
|
29142
29435
|
const glyphCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29143
29436
|
loadGlyphPick || (loadGlyphPick = !0, bind(CanvasGlyphPicker).to(DefaultCanvasGlyphPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGlyphPicker));
|
|
29144
29437
|
});
|
|
29145
29438
|
|
|
29146
|
-
var __decorate$
|
|
29439
|
+
var __decorate$6 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29147
29440
|
var d,
|
|
29148
29441
|
c = arguments.length,
|
|
29149
29442
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29150
29443
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29151
29444
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29152
29445
|
},
|
|
29153
|
-
__metadata$
|
|
29446
|
+
__metadata$4 = undefined && undefined.__metadata || function (k, v) {
|
|
29154
29447
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29155
29448
|
},
|
|
29156
|
-
__param$
|
|
29449
|
+
__param$4 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29157
29450
|
return function (target, key) {
|
|
29158
29451
|
decorator(target, key, paramIndex);
|
|
29159
29452
|
};
|
|
@@ -29166,14 +29459,14 @@ let DefaultCanvasRichTextPicker = class {
|
|
|
29166
29459
|
return !!richtext.AABBBounds.containsPoint(point);
|
|
29167
29460
|
}
|
|
29168
29461
|
};
|
|
29169
|
-
DefaultCanvasRichTextPicker = __decorate$
|
|
29462
|
+
DefaultCanvasRichTextPicker = __decorate$6([injectable(), __param$4(0, inject(RichTextRender)), __metadata$4("design:paramtypes", [Object])], DefaultCanvasRichTextPicker);
|
|
29170
29463
|
|
|
29171
29464
|
let loadRichtextPick = !1;
|
|
29172
29465
|
const richtextCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29173
29466
|
loadRichtextPick || (loadRichtextPick = !0, bind(CanvasRichTextPicker).to(DefaultCanvasRichTextPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasRichTextPicker));
|
|
29174
29467
|
});
|
|
29175
29468
|
|
|
29176
|
-
var __decorate$
|
|
29469
|
+
var __decorate$5 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29177
29470
|
var d,
|
|
29178
29471
|
c = arguments.length,
|
|
29179
29472
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -29191,24 +29484,24 @@ let DefaultCanvasImagePicker = class {
|
|
|
29191
29484
|
return !!pickContext && !!image.AABBBounds.containsPoint(point);
|
|
29192
29485
|
}
|
|
29193
29486
|
};
|
|
29194
|
-
DefaultCanvasImagePicker = __decorate$
|
|
29487
|
+
DefaultCanvasImagePicker = __decorate$5([injectable()], DefaultCanvasImagePicker);
|
|
29195
29488
|
|
|
29196
29489
|
let loadImagePick = !1;
|
|
29197
29490
|
const imageCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29198
29491
|
loadImagePick || (loadImagePick = !0, bind(CanvasImagePicker).to(DefaultCanvasImagePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasImagePicker));
|
|
29199
29492
|
});
|
|
29200
29493
|
|
|
29201
|
-
var __decorate$
|
|
29494
|
+
var __decorate$4 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29202
29495
|
var d,
|
|
29203
29496
|
c = arguments.length,
|
|
29204
29497
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29205
29498
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29206
29499
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29207
29500
|
},
|
|
29208
|
-
__metadata$
|
|
29501
|
+
__metadata$3 = undefined && undefined.__metadata || function (k, v) {
|
|
29209
29502
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29210
29503
|
},
|
|
29211
|
-
__param$
|
|
29504
|
+
__param$3 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29212
29505
|
return function (target, key) {
|
|
29213
29506
|
decorator(target, key, paramIndex);
|
|
29214
29507
|
};
|
|
@@ -29218,24 +29511,24 @@ let DefaultCanvasRect3dPicker = class extends Base3dPicker {
|
|
|
29218
29511
|
super(), this.canvasRenderer = canvasRenderer, this.type = "rect3d", this.numberType = RECT3D_NUMBER_TYPE, this.themeType = "rect";
|
|
29219
29512
|
}
|
|
29220
29513
|
};
|
|
29221
|
-
DefaultCanvasRect3dPicker = __decorate$
|
|
29514
|
+
DefaultCanvasRect3dPicker = __decorate$4([injectable(), __param$3(0, inject(Rect3DRender)), __metadata$3("design:paramtypes", [Object])], DefaultCanvasRect3dPicker);
|
|
29222
29515
|
|
|
29223
29516
|
let loadRect3dPick = !1;
|
|
29224
29517
|
const rect3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29225
29518
|
loadRect3dPick || (loadRect3dPick = !0, bind(CanvasRect3dPicker).to(DefaultCanvasRect3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasRect3dPicker));
|
|
29226
29519
|
});
|
|
29227
29520
|
|
|
29228
|
-
var __decorate$
|
|
29521
|
+
var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29229
29522
|
var d,
|
|
29230
29523
|
c = arguments.length,
|
|
29231
29524
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29232
29525
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29233
29526
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29234
29527
|
},
|
|
29235
|
-
__metadata$
|
|
29528
|
+
__metadata$2 = undefined && undefined.__metadata || function (k, v) {
|
|
29236
29529
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29237
29530
|
},
|
|
29238
|
-
__param$
|
|
29531
|
+
__param$2 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29239
29532
|
return function (target, key) {
|
|
29240
29533
|
decorator(target, key, paramIndex);
|
|
29241
29534
|
};
|
|
@@ -29245,24 +29538,24 @@ let DefaultCanvasArc3dPicker = class extends Base3dPicker {
|
|
|
29245
29538
|
super(), this.canvasRenderer = canvasRenderer, this.type = "arc3d", this.numberType = ARC3D_NUMBER_TYPE, this.themeType = "arc";
|
|
29246
29539
|
}
|
|
29247
29540
|
};
|
|
29248
|
-
DefaultCanvasArc3dPicker = __decorate$
|
|
29541
|
+
DefaultCanvasArc3dPicker = __decorate$3([injectable(), __param$2(0, inject(Arc3dRender)), __metadata$2("design:paramtypes", [Object])], DefaultCanvasArc3dPicker);
|
|
29249
29542
|
|
|
29250
29543
|
let loadArc3dPick = !1;
|
|
29251
29544
|
const arc3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29252
29545
|
loadArc3dPick || (loadArc3dPick = !0, bind(CanvasArc3dPicker).to(DefaultCanvasArc3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasArc3dPicker));
|
|
29253
29546
|
});
|
|
29254
29547
|
|
|
29255
|
-
var __decorate$
|
|
29548
|
+
var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29256
29549
|
var d,
|
|
29257
29550
|
c = arguments.length,
|
|
29258
29551
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29259
29552
|
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29260
29553
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29261
29554
|
},
|
|
29262
|
-
__metadata$
|
|
29555
|
+
__metadata$1 = undefined && undefined.__metadata || function (k, v) {
|
|
29263
29556
|
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29264
29557
|
},
|
|
29265
|
-
__param$
|
|
29558
|
+
__param$1 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29266
29559
|
return function (target, key) {
|
|
29267
29560
|
decorator(target, key, paramIndex);
|
|
29268
29561
|
};
|
|
@@ -29272,724 +29565,15 @@ let DefaultCanvasPyramid3dPicker = class extends Base3dPicker {
|
|
|
29272
29565
|
super(), this.canvasRenderer = canvasRenderer, this.type = "pyramid3d", this.numberType = PYRAMID3D_NUMBER_TYPE, this.themeType = "polygon";
|
|
29273
29566
|
}
|
|
29274
29567
|
};
|
|
29275
|
-
DefaultCanvasPyramid3dPicker = __decorate$
|
|
29568
|
+
DefaultCanvasPyramid3dPicker = __decorate$2([injectable(), __param$1(0, inject(Pyramid3dRender)), __metadata$1("design:paramtypes", [Object])], DefaultCanvasPyramid3dPicker);
|
|
29276
29569
|
|
|
29277
29570
|
let loadPyramid3dPick = !1;
|
|
29278
29571
|
const pyramid3dCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29279
29572
|
loadPyramid3dPick || (loadPyramid3dPick = !0, bind(CanvasPyramid3dPicker).to(DefaultCanvasPyramid3dPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasPyramid3dPicker));
|
|
29280
29573
|
});
|
|
29281
29574
|
|
|
29282
|
-
var lib$1 = {};
|
|
29283
|
-
|
|
29284
|
-
var gif = {};
|
|
29285
|
-
|
|
29286
|
-
var lib = {};
|
|
29287
|
-
|
|
29288
|
-
Object.defineProperty(lib, "__esModule", {
|
|
29289
|
-
value: true
|
|
29290
|
-
});
|
|
29291
|
-
lib.loop = lib.conditional = lib.parse = void 0;
|
|
29292
|
-
var parse = function parse(stream, schema) {
|
|
29293
|
-
var result = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
29294
|
-
var parent = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : result;
|
|
29295
|
-
if (Array.isArray(schema)) {
|
|
29296
|
-
schema.forEach(function (partSchema) {
|
|
29297
|
-
return parse(stream, partSchema, result, parent);
|
|
29298
|
-
});
|
|
29299
|
-
} else if (typeof schema === 'function') {
|
|
29300
|
-
schema(stream, result, parent, parse);
|
|
29301
|
-
} else {
|
|
29302
|
-
var key = Object.keys(schema)[0];
|
|
29303
|
-
if (Array.isArray(schema[key])) {
|
|
29304
|
-
parent[key] = {};
|
|
29305
|
-
parse(stream, schema[key], result, parent[key]);
|
|
29306
|
-
} else {
|
|
29307
|
-
parent[key] = schema[key](stream, result, parent, parse);
|
|
29308
|
-
}
|
|
29309
|
-
}
|
|
29310
|
-
return result;
|
|
29311
|
-
};
|
|
29312
|
-
lib.parse = parse;
|
|
29313
|
-
var conditional = function conditional(schema, conditionFunc) {
|
|
29314
|
-
return function (stream, result, parent, parse) {
|
|
29315
|
-
if (conditionFunc(stream, result, parent)) {
|
|
29316
|
-
parse(stream, schema, result, parent);
|
|
29317
|
-
}
|
|
29318
|
-
};
|
|
29319
|
-
};
|
|
29320
|
-
lib.conditional = conditional;
|
|
29321
|
-
var loop = function loop(schema, continueFunc) {
|
|
29322
|
-
return function (stream, result, parent, parse) {
|
|
29323
|
-
var arr = [];
|
|
29324
|
-
var lastStreamPos = stream.pos;
|
|
29325
|
-
while (continueFunc(stream, result, parent)) {
|
|
29326
|
-
var newParent = {};
|
|
29327
|
-
parse(stream, schema, result, newParent); // cases when whole file is parsed but no termination is there and stream position is not getting updated as well
|
|
29328
|
-
// it falls into infinite recursion, null check to avoid the same
|
|
29329
|
-
|
|
29330
|
-
if (stream.pos === lastStreamPos) {
|
|
29331
|
-
break;
|
|
29332
|
-
}
|
|
29333
|
-
lastStreamPos = stream.pos;
|
|
29334
|
-
arr.push(newParent);
|
|
29335
|
-
}
|
|
29336
|
-
return arr;
|
|
29337
|
-
};
|
|
29338
|
-
};
|
|
29339
|
-
lib.loop = loop;
|
|
29340
|
-
|
|
29341
|
-
var uint8 = {};
|
|
29342
|
-
|
|
29343
|
-
Object.defineProperty(uint8, "__esModule", {
|
|
29344
|
-
value: true
|
|
29345
|
-
});
|
|
29346
|
-
uint8.readBits = uint8.readArray = uint8.readUnsigned = uint8.readString = uint8.peekBytes = uint8.readBytes = uint8.peekByte = uint8.readByte = uint8.buildStream = void 0;
|
|
29347
|
-
|
|
29348
|
-
// Default stream and parsers for Uint8TypedArray data type
|
|
29349
|
-
var buildStream = function buildStream(uint8Data) {
|
|
29350
|
-
return {
|
|
29351
|
-
data: uint8Data,
|
|
29352
|
-
pos: 0
|
|
29353
|
-
};
|
|
29354
|
-
};
|
|
29355
|
-
uint8.buildStream = buildStream;
|
|
29356
|
-
var readByte = function readByte() {
|
|
29357
|
-
return function (stream) {
|
|
29358
|
-
return stream.data[stream.pos++];
|
|
29359
|
-
};
|
|
29360
|
-
};
|
|
29361
|
-
uint8.readByte = readByte;
|
|
29362
|
-
var peekByte = function peekByte() {
|
|
29363
|
-
var offset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
29364
|
-
return function (stream) {
|
|
29365
|
-
return stream.data[stream.pos + offset];
|
|
29366
|
-
};
|
|
29367
|
-
};
|
|
29368
|
-
uint8.peekByte = peekByte;
|
|
29369
|
-
var readBytes = function readBytes(length) {
|
|
29370
|
-
return function (stream) {
|
|
29371
|
-
return stream.data.subarray(stream.pos, stream.pos += length);
|
|
29372
|
-
};
|
|
29373
|
-
};
|
|
29374
|
-
uint8.readBytes = readBytes;
|
|
29375
|
-
var peekBytes = function peekBytes(length) {
|
|
29376
|
-
return function (stream) {
|
|
29377
|
-
return stream.data.subarray(stream.pos, stream.pos + length);
|
|
29378
|
-
};
|
|
29379
|
-
};
|
|
29380
|
-
uint8.peekBytes = peekBytes;
|
|
29381
|
-
var readString = function readString(length) {
|
|
29382
|
-
return function (stream) {
|
|
29383
|
-
return Array.from(readBytes(length)(stream)).map(function (value) {
|
|
29384
|
-
return String.fromCharCode(value);
|
|
29385
|
-
}).join('');
|
|
29386
|
-
};
|
|
29387
|
-
};
|
|
29388
|
-
uint8.readString = readString;
|
|
29389
|
-
var readUnsigned = function readUnsigned(littleEndian) {
|
|
29390
|
-
return function (stream) {
|
|
29391
|
-
var bytes = readBytes(2)(stream);
|
|
29392
|
-
return littleEndian ? (bytes[1] << 8) + bytes[0] : (bytes[0] << 8) + bytes[1];
|
|
29393
|
-
};
|
|
29394
|
-
};
|
|
29395
|
-
uint8.readUnsigned = readUnsigned;
|
|
29396
|
-
var readArray = function readArray(byteSize, totalOrFunc) {
|
|
29397
|
-
return function (stream, result, parent) {
|
|
29398
|
-
var total = typeof totalOrFunc === 'function' ? totalOrFunc(stream, result, parent) : totalOrFunc;
|
|
29399
|
-
var parser = readBytes(byteSize);
|
|
29400
|
-
var arr = new Array(total);
|
|
29401
|
-
for (var i = 0; i < total; i++) {
|
|
29402
|
-
arr[i] = parser(stream);
|
|
29403
|
-
}
|
|
29404
|
-
return arr;
|
|
29405
|
-
};
|
|
29406
|
-
};
|
|
29407
|
-
uint8.readArray = readArray;
|
|
29408
|
-
var subBitsTotal = function subBitsTotal(bits, startIndex, length) {
|
|
29409
|
-
var result = 0;
|
|
29410
|
-
for (var i = 0; i < length; i++) {
|
|
29411
|
-
result += bits[startIndex + i] && Math.pow(2, length - i - 1);
|
|
29412
|
-
}
|
|
29413
|
-
return result;
|
|
29414
|
-
};
|
|
29415
|
-
var readBits = function readBits(schema) {
|
|
29416
|
-
return function (stream) {
|
|
29417
|
-
var _byte = readByte()(stream); // convert the byte to bit array
|
|
29418
|
-
|
|
29419
|
-
var bits = new Array(8);
|
|
29420
|
-
for (var i = 0; i < 8; i++) {
|
|
29421
|
-
bits[7 - i] = !!(_byte & 1 << i);
|
|
29422
|
-
} // convert the bit array to values based on the schema
|
|
29423
|
-
|
|
29424
|
-
return Object.keys(schema).reduce(function (res, key) {
|
|
29425
|
-
var def = schema[key];
|
|
29426
|
-
if (def.length) {
|
|
29427
|
-
res[key] = subBitsTotal(bits, def.index, def.length);
|
|
29428
|
-
} else {
|
|
29429
|
-
res[key] = bits[def.index];
|
|
29430
|
-
}
|
|
29431
|
-
return res;
|
|
29432
|
-
}, {});
|
|
29433
|
-
};
|
|
29434
|
-
};
|
|
29435
|
-
uint8.readBits = readBits;
|
|
29436
|
-
|
|
29437
|
-
(function (exports) {
|
|
29438
|
-
|
|
29439
|
-
Object.defineProperty(exports, "__esModule", {
|
|
29440
|
-
value: true
|
|
29441
|
-
});
|
|
29442
|
-
exports["default"] = void 0;
|
|
29443
|
-
var _ = lib;
|
|
29444
|
-
var _uint = uint8;
|
|
29445
|
-
|
|
29446
|
-
// a set of 0x00 terminated subblocks
|
|
29447
|
-
var subBlocksSchema = {
|
|
29448
|
-
blocks: function blocks(stream) {
|
|
29449
|
-
var terminator = 0x00;
|
|
29450
|
-
var chunks = [];
|
|
29451
|
-
var streamSize = stream.data.length;
|
|
29452
|
-
var total = 0;
|
|
29453
|
-
for (var size = (0, _uint.readByte)()(stream); size !== terminator; size = (0, _uint.readByte)()(stream)) {
|
|
29454
|
-
// size becomes undefined for some case when file is corrupted and terminator is not proper
|
|
29455
|
-
// null check to avoid recursion
|
|
29456
|
-
if (!size) break; // catch corrupted files with no terminator
|
|
29457
|
-
|
|
29458
|
-
if (stream.pos + size >= streamSize) {
|
|
29459
|
-
var availableSize = streamSize - stream.pos;
|
|
29460
|
-
chunks.push((0, _uint.readBytes)(availableSize)(stream));
|
|
29461
|
-
total += availableSize;
|
|
29462
|
-
break;
|
|
29463
|
-
}
|
|
29464
|
-
chunks.push((0, _uint.readBytes)(size)(stream));
|
|
29465
|
-
total += size;
|
|
29466
|
-
}
|
|
29467
|
-
var result = new Uint8Array(total);
|
|
29468
|
-
var offset = 0;
|
|
29469
|
-
for (var i = 0; i < chunks.length; i++) {
|
|
29470
|
-
result.set(chunks[i], offset);
|
|
29471
|
-
offset += chunks[i].length;
|
|
29472
|
-
}
|
|
29473
|
-
return result;
|
|
29474
|
-
}
|
|
29475
|
-
}; // global control extension
|
|
29476
|
-
|
|
29477
|
-
var gceSchema = (0, _.conditional)({
|
|
29478
|
-
gce: [{
|
|
29479
|
-
codes: (0, _uint.readBytes)(2)
|
|
29480
|
-
}, {
|
|
29481
|
-
byteSize: (0, _uint.readByte)()
|
|
29482
|
-
}, {
|
|
29483
|
-
extras: (0, _uint.readBits)({
|
|
29484
|
-
future: {
|
|
29485
|
-
index: 0,
|
|
29486
|
-
length: 3
|
|
29487
|
-
},
|
|
29488
|
-
disposal: {
|
|
29489
|
-
index: 3,
|
|
29490
|
-
length: 3
|
|
29491
|
-
},
|
|
29492
|
-
userInput: {
|
|
29493
|
-
index: 6
|
|
29494
|
-
},
|
|
29495
|
-
transparentColorGiven: {
|
|
29496
|
-
index: 7
|
|
29497
|
-
}
|
|
29498
|
-
})
|
|
29499
|
-
}, {
|
|
29500
|
-
delay: (0, _uint.readUnsigned)(true)
|
|
29501
|
-
}, {
|
|
29502
|
-
transparentColorIndex: (0, _uint.readByte)()
|
|
29503
|
-
}, {
|
|
29504
|
-
terminator: (0, _uint.readByte)()
|
|
29505
|
-
}]
|
|
29506
|
-
}, function (stream) {
|
|
29507
|
-
var codes = (0, _uint.peekBytes)(2)(stream);
|
|
29508
|
-
return codes[0] === 0x21 && codes[1] === 0xf9;
|
|
29509
|
-
}); // image pipeline block
|
|
29510
|
-
|
|
29511
|
-
var imageSchema = (0, _.conditional)({
|
|
29512
|
-
image: [{
|
|
29513
|
-
code: (0, _uint.readByte)()
|
|
29514
|
-
}, {
|
|
29515
|
-
descriptor: [{
|
|
29516
|
-
left: (0, _uint.readUnsigned)(true)
|
|
29517
|
-
}, {
|
|
29518
|
-
top: (0, _uint.readUnsigned)(true)
|
|
29519
|
-
}, {
|
|
29520
|
-
width: (0, _uint.readUnsigned)(true)
|
|
29521
|
-
}, {
|
|
29522
|
-
height: (0, _uint.readUnsigned)(true)
|
|
29523
|
-
}, {
|
|
29524
|
-
lct: (0, _uint.readBits)({
|
|
29525
|
-
exists: {
|
|
29526
|
-
index: 0
|
|
29527
|
-
},
|
|
29528
|
-
interlaced: {
|
|
29529
|
-
index: 1
|
|
29530
|
-
},
|
|
29531
|
-
sort: {
|
|
29532
|
-
index: 2
|
|
29533
|
-
},
|
|
29534
|
-
future: {
|
|
29535
|
-
index: 3,
|
|
29536
|
-
length: 2
|
|
29537
|
-
},
|
|
29538
|
-
size: {
|
|
29539
|
-
index: 5,
|
|
29540
|
-
length: 3
|
|
29541
|
-
}
|
|
29542
|
-
})
|
|
29543
|
-
}]
|
|
29544
|
-
}, (0, _.conditional)({
|
|
29545
|
-
lct: (0, _uint.readArray)(3, function (stream, result, parent) {
|
|
29546
|
-
return Math.pow(2, parent.descriptor.lct.size + 1);
|
|
29547
|
-
})
|
|
29548
|
-
}, function (stream, result, parent) {
|
|
29549
|
-
return parent.descriptor.lct.exists;
|
|
29550
|
-
}), {
|
|
29551
|
-
data: [{
|
|
29552
|
-
minCodeSize: (0, _uint.readByte)()
|
|
29553
|
-
}, subBlocksSchema]
|
|
29554
|
-
}]
|
|
29555
|
-
}, function (stream) {
|
|
29556
|
-
return (0, _uint.peekByte)()(stream) === 0x2c;
|
|
29557
|
-
}); // plain text block
|
|
29558
|
-
|
|
29559
|
-
var textSchema = (0, _.conditional)({
|
|
29560
|
-
text: [{
|
|
29561
|
-
codes: (0, _uint.readBytes)(2)
|
|
29562
|
-
}, {
|
|
29563
|
-
blockSize: (0, _uint.readByte)()
|
|
29564
|
-
}, {
|
|
29565
|
-
preData: function preData(stream, result, parent) {
|
|
29566
|
-
return (0, _uint.readBytes)(parent.text.blockSize)(stream);
|
|
29567
|
-
}
|
|
29568
|
-
}, subBlocksSchema]
|
|
29569
|
-
}, function (stream) {
|
|
29570
|
-
var codes = (0, _uint.peekBytes)(2)(stream);
|
|
29571
|
-
return codes[0] === 0x21 && codes[1] === 0x01;
|
|
29572
|
-
}); // application block
|
|
29573
|
-
|
|
29574
|
-
var applicationSchema = (0, _.conditional)({
|
|
29575
|
-
application: [{
|
|
29576
|
-
codes: (0, _uint.readBytes)(2)
|
|
29577
|
-
}, {
|
|
29578
|
-
blockSize: (0, _uint.readByte)()
|
|
29579
|
-
}, {
|
|
29580
|
-
id: function id(stream, result, parent) {
|
|
29581
|
-
return (0, _uint.readString)(parent.blockSize)(stream);
|
|
29582
|
-
}
|
|
29583
|
-
}, subBlocksSchema]
|
|
29584
|
-
}, function (stream) {
|
|
29585
|
-
var codes = (0, _uint.peekBytes)(2)(stream);
|
|
29586
|
-
return codes[0] === 0x21 && codes[1] === 0xff;
|
|
29587
|
-
}); // comment block
|
|
29588
|
-
|
|
29589
|
-
var commentSchema = (0, _.conditional)({
|
|
29590
|
-
comment: [{
|
|
29591
|
-
codes: (0, _uint.readBytes)(2)
|
|
29592
|
-
}, subBlocksSchema]
|
|
29593
|
-
}, function (stream) {
|
|
29594
|
-
var codes = (0, _uint.peekBytes)(2)(stream);
|
|
29595
|
-
return codes[0] === 0x21 && codes[1] === 0xfe;
|
|
29596
|
-
});
|
|
29597
|
-
var schema = [{
|
|
29598
|
-
header: [{
|
|
29599
|
-
signature: (0, _uint.readString)(3)
|
|
29600
|
-
}, {
|
|
29601
|
-
version: (0, _uint.readString)(3)
|
|
29602
|
-
}]
|
|
29603
|
-
}, {
|
|
29604
|
-
lsd: [{
|
|
29605
|
-
width: (0, _uint.readUnsigned)(true)
|
|
29606
|
-
}, {
|
|
29607
|
-
height: (0, _uint.readUnsigned)(true)
|
|
29608
|
-
}, {
|
|
29609
|
-
gct: (0, _uint.readBits)({
|
|
29610
|
-
exists: {
|
|
29611
|
-
index: 0
|
|
29612
|
-
},
|
|
29613
|
-
resolution: {
|
|
29614
|
-
index: 1,
|
|
29615
|
-
length: 3
|
|
29616
|
-
},
|
|
29617
|
-
sort: {
|
|
29618
|
-
index: 4
|
|
29619
|
-
},
|
|
29620
|
-
size: {
|
|
29621
|
-
index: 5,
|
|
29622
|
-
length: 3
|
|
29623
|
-
}
|
|
29624
|
-
})
|
|
29625
|
-
}, {
|
|
29626
|
-
backgroundColorIndex: (0, _uint.readByte)()
|
|
29627
|
-
}, {
|
|
29628
|
-
pixelAspectRatio: (0, _uint.readByte)()
|
|
29629
|
-
}]
|
|
29630
|
-
}, (0, _.conditional)({
|
|
29631
|
-
gct: (0, _uint.readArray)(3, function (stream, result) {
|
|
29632
|
-
return Math.pow(2, result.lsd.gct.size + 1);
|
|
29633
|
-
})
|
|
29634
|
-
}, function (stream, result) {
|
|
29635
|
-
return result.lsd.gct.exists;
|
|
29636
|
-
}),
|
|
29637
|
-
// content frames
|
|
29638
|
-
{
|
|
29639
|
-
frames: (0, _.loop)([gceSchema, applicationSchema, commentSchema, imageSchema, textSchema], function (stream) {
|
|
29640
|
-
var nextCode = (0, _uint.peekByte)()(stream); // rather than check for a terminator, we should check for the existence
|
|
29641
|
-
// of an ext or image block to avoid infinite loops
|
|
29642
|
-
//var terminator = 0x3B;
|
|
29643
|
-
//return nextCode !== terminator;
|
|
29644
|
-
|
|
29645
|
-
return nextCode === 0x21 || nextCode === 0x2c;
|
|
29646
|
-
})
|
|
29647
|
-
}];
|
|
29648
|
-
var _default = schema;
|
|
29649
|
-
exports["default"] = _default;
|
|
29650
|
-
})(gif);
|
|
29651
|
-
|
|
29652
|
-
var deinterlace$1 = {};
|
|
29653
|
-
|
|
29654
|
-
Object.defineProperty(deinterlace$1, "__esModule", {
|
|
29655
|
-
value: true
|
|
29656
|
-
});
|
|
29657
|
-
deinterlace$1.deinterlace = void 0;
|
|
29658
|
-
|
|
29659
|
-
/**
|
|
29660
|
-
* Deinterlace function from https://github.com/shachaf/jsgif
|
|
29661
|
-
*/
|
|
29662
|
-
var deinterlace = function deinterlace(pixels, width) {
|
|
29663
|
-
var newPixels = new Array(pixels.length);
|
|
29664
|
-
var rows = pixels.length / width;
|
|
29665
|
-
var cpRow = function cpRow(toRow, fromRow) {
|
|
29666
|
-
var fromPixels = pixels.slice(fromRow * width, (fromRow + 1) * width);
|
|
29667
|
-
newPixels.splice.apply(newPixels, [toRow * width, width].concat(fromPixels));
|
|
29668
|
-
}; // See appendix E.
|
|
29669
|
-
|
|
29670
|
-
var offsets = [0, 4, 2, 1];
|
|
29671
|
-
var steps = [8, 8, 4, 2];
|
|
29672
|
-
var fromRow = 0;
|
|
29673
|
-
for (var pass = 0; pass < 4; pass++) {
|
|
29674
|
-
for (var toRow = offsets[pass]; toRow < rows; toRow += steps[pass]) {
|
|
29675
|
-
cpRow(toRow, fromRow);
|
|
29676
|
-
fromRow++;
|
|
29677
|
-
}
|
|
29678
|
-
}
|
|
29679
|
-
return newPixels;
|
|
29680
|
-
};
|
|
29681
|
-
deinterlace$1.deinterlace = deinterlace;
|
|
29682
|
-
|
|
29683
|
-
var lzw$1 = {};
|
|
29684
|
-
|
|
29685
|
-
Object.defineProperty(lzw$1, "__esModule", {
|
|
29686
|
-
value: true
|
|
29687
|
-
});
|
|
29688
|
-
lzw$1.lzw = void 0;
|
|
29689
|
-
|
|
29690
|
-
/**
|
|
29691
|
-
* javascript port of java LZW decompression
|
|
29692
|
-
* Original java author url: https://gist.github.com/devunwired/4479231
|
|
29693
|
-
*/
|
|
29694
|
-
var lzw = function lzw(minCodeSize, data, pixelCount) {
|
|
29695
|
-
var MAX_STACK_SIZE = 4096;
|
|
29696
|
-
var nullCode = -1;
|
|
29697
|
-
var npix = pixelCount;
|
|
29698
|
-
var available, clear, code_mask, code_size, end_of_information, in_code, old_code, bits, code, i, datum, data_size, first, top, bi, pi;
|
|
29699
|
-
var dstPixels = new Array(pixelCount);
|
|
29700
|
-
var prefix = new Array(MAX_STACK_SIZE);
|
|
29701
|
-
var suffix = new Array(MAX_STACK_SIZE);
|
|
29702
|
-
var pixelStack = new Array(MAX_STACK_SIZE + 1); // Initialize GIF data stream decoder.
|
|
29703
|
-
|
|
29704
|
-
data_size = minCodeSize;
|
|
29705
|
-
clear = 1 << data_size;
|
|
29706
|
-
end_of_information = clear + 1;
|
|
29707
|
-
available = clear + 2;
|
|
29708
|
-
old_code = nullCode;
|
|
29709
|
-
code_size = data_size + 1;
|
|
29710
|
-
code_mask = (1 << code_size) - 1;
|
|
29711
|
-
for (code = 0; code < clear; code++) {
|
|
29712
|
-
prefix[code] = 0;
|
|
29713
|
-
suffix[code] = code;
|
|
29714
|
-
} // Decode GIF pixel stream.
|
|
29715
|
-
|
|
29716
|
-
var datum, bits, first, top, pi, bi;
|
|
29717
|
-
datum = bits = first = top = pi = bi = 0;
|
|
29718
|
-
for (i = 0; i < npix;) {
|
|
29719
|
-
if (top === 0) {
|
|
29720
|
-
if (bits < code_size) {
|
|
29721
|
-
// get the next byte
|
|
29722
|
-
datum += data[bi] << bits;
|
|
29723
|
-
bits += 8;
|
|
29724
|
-
bi++;
|
|
29725
|
-
continue;
|
|
29726
|
-
} // Get the next code.
|
|
29727
|
-
|
|
29728
|
-
code = datum & code_mask;
|
|
29729
|
-
datum >>= code_size;
|
|
29730
|
-
bits -= code_size; // Interpret the code
|
|
29731
|
-
|
|
29732
|
-
if (code > available || code == end_of_information) {
|
|
29733
|
-
break;
|
|
29734
|
-
}
|
|
29735
|
-
if (code == clear) {
|
|
29736
|
-
// Reset decoder.
|
|
29737
|
-
code_size = data_size + 1;
|
|
29738
|
-
code_mask = (1 << code_size) - 1;
|
|
29739
|
-
available = clear + 2;
|
|
29740
|
-
old_code = nullCode;
|
|
29741
|
-
continue;
|
|
29742
|
-
}
|
|
29743
|
-
if (old_code == nullCode) {
|
|
29744
|
-
pixelStack[top++] = suffix[code];
|
|
29745
|
-
old_code = code;
|
|
29746
|
-
first = code;
|
|
29747
|
-
continue;
|
|
29748
|
-
}
|
|
29749
|
-
in_code = code;
|
|
29750
|
-
if (code == available) {
|
|
29751
|
-
pixelStack[top++] = first;
|
|
29752
|
-
code = old_code;
|
|
29753
|
-
}
|
|
29754
|
-
while (code > clear) {
|
|
29755
|
-
pixelStack[top++] = suffix[code];
|
|
29756
|
-
code = prefix[code];
|
|
29757
|
-
}
|
|
29758
|
-
first = suffix[code] & 0xff;
|
|
29759
|
-
pixelStack[top++] = first; // add a new string to the table, but only if space is available
|
|
29760
|
-
// if not, just continue with current table until a clear code is found
|
|
29761
|
-
// (deferred clear code implementation as per GIF spec)
|
|
29762
|
-
|
|
29763
|
-
if (available < MAX_STACK_SIZE) {
|
|
29764
|
-
prefix[available] = old_code;
|
|
29765
|
-
suffix[available] = first;
|
|
29766
|
-
available++;
|
|
29767
|
-
if ((available & code_mask) === 0 && available < MAX_STACK_SIZE) {
|
|
29768
|
-
code_size++;
|
|
29769
|
-
code_mask += available;
|
|
29770
|
-
}
|
|
29771
|
-
}
|
|
29772
|
-
old_code = in_code;
|
|
29773
|
-
} // Pop a pixel off the pixel stack.
|
|
29774
|
-
|
|
29775
|
-
top--;
|
|
29776
|
-
dstPixels[pi++] = pixelStack[top];
|
|
29777
|
-
i++;
|
|
29778
|
-
}
|
|
29779
|
-
for (i = pi; i < npix; i++) {
|
|
29780
|
-
dstPixels[i] = 0; // clear missing pixels
|
|
29781
|
-
}
|
|
29782
|
-
|
|
29783
|
-
return dstPixels;
|
|
29784
|
-
};
|
|
29785
|
-
lzw$1.lzw = lzw;
|
|
29786
|
-
|
|
29787
|
-
Object.defineProperty(lib$1, "__esModule", {
|
|
29788
|
-
value: true
|
|
29789
|
-
});
|
|
29790
|
-
var decompressFrames_1 = lib$1.decompressFrames = lib$1.decompressFrame = parseGIF_1 = lib$1.parseGIF = void 0;
|
|
29791
|
-
var _gif = _interopRequireDefault(gif);
|
|
29792
|
-
var _jsBinarySchemaParser = lib;
|
|
29793
|
-
var _uint = uint8;
|
|
29794
|
-
var _deinterlace = deinterlace$1;
|
|
29795
|
-
var _lzw = lzw$1;
|
|
29796
|
-
function _interopRequireDefault(obj) {
|
|
29797
|
-
return obj && obj.__esModule ? obj : {
|
|
29798
|
-
"default": obj
|
|
29799
|
-
};
|
|
29800
|
-
}
|
|
29801
|
-
var parseGIF = function parseGIF(arrayBuffer) {
|
|
29802
|
-
var byteData = new Uint8Array(arrayBuffer);
|
|
29803
|
-
return (0, _jsBinarySchemaParser.parse)((0, _uint.buildStream)(byteData), _gif["default"]);
|
|
29804
|
-
};
|
|
29805
|
-
var parseGIF_1 = lib$1.parseGIF = parseGIF;
|
|
29806
|
-
var generatePatch = function generatePatch(image) {
|
|
29807
|
-
var totalPixels = image.pixels.length;
|
|
29808
|
-
var patchData = new Uint8ClampedArray(totalPixels * 4);
|
|
29809
|
-
for (var i = 0; i < totalPixels; i++) {
|
|
29810
|
-
var pos = i * 4;
|
|
29811
|
-
var colorIndex = image.pixels[i];
|
|
29812
|
-
var color = image.colorTable[colorIndex] || [0, 0, 0];
|
|
29813
|
-
patchData[pos] = color[0];
|
|
29814
|
-
patchData[pos + 1] = color[1];
|
|
29815
|
-
patchData[pos + 2] = color[2];
|
|
29816
|
-
patchData[pos + 3] = colorIndex !== image.transparentIndex ? 255 : 0;
|
|
29817
|
-
}
|
|
29818
|
-
return patchData;
|
|
29819
|
-
};
|
|
29820
|
-
var decompressFrame = function decompressFrame(frame, gct, buildImagePatch) {
|
|
29821
|
-
if (!frame.image) {
|
|
29822
|
-
console.warn('gif frame does not have associated image.');
|
|
29823
|
-
return;
|
|
29824
|
-
}
|
|
29825
|
-
var image = frame.image; // get the number of pixels
|
|
29826
|
-
|
|
29827
|
-
var totalPixels = image.descriptor.width * image.descriptor.height; // do lzw decompression
|
|
29828
|
-
|
|
29829
|
-
var pixels = (0, _lzw.lzw)(image.data.minCodeSize, image.data.blocks, totalPixels); // deal with interlacing if necessary
|
|
29830
|
-
|
|
29831
|
-
if (image.descriptor.lct.interlaced) {
|
|
29832
|
-
pixels = (0, _deinterlace.deinterlace)(pixels, image.descriptor.width);
|
|
29833
|
-
}
|
|
29834
|
-
var resultImage = {
|
|
29835
|
-
pixels: pixels,
|
|
29836
|
-
dims: {
|
|
29837
|
-
top: frame.image.descriptor.top,
|
|
29838
|
-
left: frame.image.descriptor.left,
|
|
29839
|
-
width: frame.image.descriptor.width,
|
|
29840
|
-
height: frame.image.descriptor.height
|
|
29841
|
-
}
|
|
29842
|
-
}; // color table
|
|
29843
|
-
|
|
29844
|
-
if (image.descriptor.lct && image.descriptor.lct.exists) {
|
|
29845
|
-
resultImage.colorTable = image.lct;
|
|
29846
|
-
} else {
|
|
29847
|
-
resultImage.colorTable = gct;
|
|
29848
|
-
} // add per frame relevant gce information
|
|
29849
|
-
|
|
29850
|
-
if (frame.gce) {
|
|
29851
|
-
resultImage.delay = (frame.gce.delay || 10) * 10; // convert to ms
|
|
29852
|
-
|
|
29853
|
-
resultImage.disposalType = frame.gce.extras.disposal; // transparency
|
|
29854
|
-
|
|
29855
|
-
if (frame.gce.extras.transparentColorGiven) {
|
|
29856
|
-
resultImage.transparentIndex = frame.gce.transparentColorIndex;
|
|
29857
|
-
}
|
|
29858
|
-
} // create canvas usable imagedata if desired
|
|
29859
|
-
|
|
29860
|
-
if (buildImagePatch) {
|
|
29861
|
-
resultImage.patch = generatePatch(resultImage);
|
|
29862
|
-
}
|
|
29863
|
-
return resultImage;
|
|
29864
|
-
};
|
|
29865
|
-
lib$1.decompressFrame = decompressFrame;
|
|
29866
|
-
var decompressFrames = function decompressFrames(parsedGif, buildImagePatches) {
|
|
29867
|
-
return parsedGif.frames.filter(function (f) {
|
|
29868
|
-
return f.image;
|
|
29869
|
-
}).map(function (f) {
|
|
29870
|
-
return decompressFrame(f, parsedGif.gct, buildImagePatches);
|
|
29871
|
-
});
|
|
29872
|
-
};
|
|
29873
|
-
decompressFrames_1 = lib$1.decompressFrames = decompressFrames;
|
|
29874
|
-
|
|
29875
|
-
const GIFIMAGE_NUMBER_TYPE = Generator.GenAutoIncrementId();
|
|
29876
29575
|
const LOTTIE_NUMBER_TYPE = Generator.GenAutoIncrementId();
|
|
29877
29576
|
|
|
29878
|
-
class GifImage extends Image$1 {
|
|
29879
|
-
constructor(params) {
|
|
29880
|
-
super(params), this.type = "gif-image", this.numberType = GIFIMAGE_NUMBER_TYPE, this.loadGif();
|
|
29881
|
-
}
|
|
29882
|
-
loadGif() {
|
|
29883
|
-
if (isString$1(this.attribute.gifImage)) ResourceLoader.GetFile(this.attribute.gifImage, "arrayBuffer").then(res => {
|
|
29884
|
-
const gif = parseGIF_1(res),
|
|
29885
|
-
frames = decompressFrames_1(gif, !0);
|
|
29886
|
-
this.renderGIF(frames);
|
|
29887
|
-
}).catch(e => {
|
|
29888
|
-
console.error("Gif load error: ", e);
|
|
29889
|
-
});else if (this.attribute.gifImage instanceof ArrayBuffer) {
|
|
29890
|
-
const gif = parseGIF_1(this.attribute.gifImage),
|
|
29891
|
-
frames = decompressFrames_1(gif, !0);
|
|
29892
|
-
this.renderGIF(frames);
|
|
29893
|
-
}
|
|
29894
|
-
}
|
|
29895
|
-
renderGIF(frames) {
|
|
29896
|
-
this.loadedFrames = frames, this.frameIndex = 0, this.tempCanvas || (this.tempCanvas = application.global.createCanvas({}), this.tempCtx = this.tempCanvas.getContext("2d")), this.gifCanvas || (this.gifCanvas = application.global.createCanvas({}), this.gifCtx = this.gifCanvas.getContext("2d")), this.gifCanvas.width = frames[0].dims.width, this.gifCanvas.height = frames[0].dims.height, this.playing = !0, this.lastTime = new Date().getTime();
|
|
29897
|
-
const animation = this.animate();
|
|
29898
|
-
this.attribute.timeline && animation.setTimeline(this.attribute.timeline), animation.to({}, 1e3, "linear").loop(1 / 0);
|
|
29899
|
-
}
|
|
29900
|
-
renderFrame(context, x, y) {
|
|
29901
|
-
const frame = this.loadedFrames[this.frameIndex || 0];
|
|
29902
|
-
2 === frame.disposalType && this.gifCtx.clearRect(0, 0, this.gifCanvas.width, this.gifCanvas.height), this.drawPatch(frame), this.manipulate(context, x, y);
|
|
29903
|
-
const diff = new Date().getTime() - this.lastTime;
|
|
29904
|
-
frame.delay < diff && (this.frameIndex++, this.lastTime = new Date().getTime()), this.frameIndex >= this.loadedFrames.length && (this.frameIndex = 0);
|
|
29905
|
-
}
|
|
29906
|
-
drawPatch(frame) {
|
|
29907
|
-
const dims = frame.dims;
|
|
29908
|
-
this.frameImageData && dims.width === this.frameImageData.width && dims.height === this.frameImageData.height || (this.tempCanvas.width = dims.width, this.tempCanvas.height = dims.height, this.frameImageData = this.tempCtx.createImageData(dims.width, dims.height)), this.frameImageData.data.set(frame.patch), this.tempCtx.putImageData(this.frameImageData, 0, 0), this.gifCtx.drawImage(this.tempCanvas, dims.left, dims.top);
|
|
29909
|
-
}
|
|
29910
|
-
manipulate(context, x, y) {
|
|
29911
|
-
context.drawImage(this.gifCanvas, 0, 0, this.gifCanvas.width, this.gifCanvas.height, x, y, this.attribute.width, this.attribute.height);
|
|
29912
|
-
}
|
|
29913
|
-
setAttribute(key, value, forceUpdateTag, context) {
|
|
29914
|
-
super.setAttribute(key, value, forceUpdateTag, context), "gifImage" === key && this.loadGif();
|
|
29915
|
-
}
|
|
29916
|
-
setAttributes(params, forceUpdateTag, context) {
|
|
29917
|
-
super.setAttributes(params, forceUpdateTag, context), params.gifImage && this.loadGif();
|
|
29918
|
-
}
|
|
29919
|
-
}
|
|
29920
|
-
function createGifImage(attributes) {
|
|
29921
|
-
return new GifImage(attributes);
|
|
29922
|
-
}
|
|
29923
|
-
|
|
29924
|
-
var __decorate$3 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29925
|
-
var d,
|
|
29926
|
-
c = arguments.length,
|
|
29927
|
-
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29928
|
-
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29929
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29930
|
-
};
|
|
29931
|
-
let DefaultCanvasGifImagePicker = class {
|
|
29932
|
-
constructor() {
|
|
29933
|
-
this.type = "gif-image", this.numberType = GIFIMAGE_NUMBER_TYPE;
|
|
29934
|
-
}
|
|
29935
|
-
contains(gifImage, point, params) {
|
|
29936
|
-
const {
|
|
29937
|
-
pickContext: pickContext
|
|
29938
|
-
} = null != params ? params : {};
|
|
29939
|
-
return !!pickContext && !!gifImage.AABBBounds.containsPoint(point);
|
|
29940
|
-
}
|
|
29941
|
-
};
|
|
29942
|
-
DefaultCanvasGifImagePicker = __decorate$3([injectable()], DefaultCanvasGifImagePicker);
|
|
29943
|
-
|
|
29944
|
-
let loadGifImagePick = !1;
|
|
29945
|
-
const gifImageCanvasPickModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
29946
|
-
loadGifImagePick || (loadGifImagePick = !0, bind(CanvasGifImagePicker).to(DefaultCanvasGifImagePicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGifImagePicker));
|
|
29947
|
-
});
|
|
29948
|
-
|
|
29949
|
-
var __decorate$2 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29950
|
-
var d,
|
|
29951
|
-
c = arguments.length,
|
|
29952
|
-
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29953
|
-
if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29954
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29955
|
-
},
|
|
29956
|
-
__metadata$1 = undefined && undefined.__metadata || function (k, v) {
|
|
29957
|
-
if ("object" == typeof Reflect && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29958
|
-
},
|
|
29959
|
-
__param$1 = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
29960
|
-
return function (target, key) {
|
|
29961
|
-
decorator(target, key, paramIndex);
|
|
29962
|
-
};
|
|
29963
|
-
};
|
|
29964
|
-
let DefaultCanvasGifImageRender = class extends DefaultCanvasImageRender {
|
|
29965
|
-
constructor(imageRenderContribitions) {
|
|
29966
|
-
super(imageRenderContribitions), this.imageRenderContribitions = imageRenderContribitions, this.numberType = GIFIMAGE_NUMBER_TYPE, this._renderContribitions = void 0, this.builtinContributions = [defaultGifImageRenderContribution], this.init(imageRenderContribitions);
|
|
29967
|
-
}
|
|
29968
|
-
draw(image, renderService, drawContext) {
|
|
29969
|
-
const {
|
|
29970
|
-
context: context
|
|
29971
|
-
} = renderService.drawParams;
|
|
29972
|
-
if (!context) return;
|
|
29973
|
-
const imageAttribute = getTheme(image).image;
|
|
29974
|
-
this._draw(image, imageAttribute, !1, drawContext);
|
|
29975
|
-
}
|
|
29976
|
-
};
|
|
29977
|
-
DefaultCanvasGifImageRender = __decorate$2([injectable(), __param$1(0, inject(ContributionProvider)), __param$1(0, named(ImageRenderContribution)), __metadata$1("design:paramtypes", [Object])], DefaultCanvasGifImageRender);
|
|
29978
|
-
class DefaultGifImageRenderContribution extends DefaultRectRenderContribution {
|
|
29979
|
-
constructor() {
|
|
29980
|
-
super(...arguments), this.time = BaseRenderContributionTime.afterFillStroke, this.useStyle = !0, this.order = 0;
|
|
29981
|
-
}
|
|
29982
|
-
drawShape(image, context, x, y, doFill, doStroke, fVisible, sVisible, rectAttribute, drawContext, fillCb, strokeCb) {
|
|
29983
|
-
image.renderFrame && image.playing && image.renderFrame(context, x, y);
|
|
29984
|
-
}
|
|
29985
|
-
}
|
|
29986
|
-
const defaultGifImageRenderContribution = new DefaultGifImageRenderContribution();
|
|
29987
|
-
|
|
29988
|
-
let loadGifImageModule = !1;
|
|
29989
|
-
const gifImageModule = new ContainerModule(bind => {
|
|
29990
|
-
loadGifImageModule || (loadGifImageModule = !0, bind(DefaultCanvasGifImageRender).toSelf().inSingletonScope(), bind(GraphicRender).toService(DefaultCanvasGifImageRender));
|
|
29991
|
-
});
|
|
29992
|
-
|
|
29993
29577
|
var lottie = {exports: {}};
|
|
29994
29578
|
|
|
29995
29579
|
(function(module,exports){typeof navigator!=="undefined"&&function(global,factory){module.exports=factory();}(commonjsGlobal,function(){var svgNS='http://www.w3.org/2000/svg';var locationHref='';var _useWebWorker=false;var initialDefaultFrame=-999999;var setWebWorker=function setWebWorker(flag){_useWebWorker=!!flag;};var getWebWorker=function getWebWorker(){return _useWebWorker;};var setLocationHref=function setLocationHref(value){locationHref=value;};var getLocationHref=function getLocationHref(){return locationHref;};function createTag(type){// return {appendChild:function(){},setAttribute:function(){},style:{}}
|
|
@@ -30891,7 +30475,7 @@ const registerWrapText = _registerWrapText;
|
|
|
30891
30475
|
|
|
30892
30476
|
const roughModule = _roughModule;
|
|
30893
30477
|
|
|
30894
|
-
const version = "0.22.0-vstory.
|
|
30478
|
+
const version = "0.22.0-vstory.10";
|
|
30895
30479
|
preLoadAllModule();
|
|
30896
30480
|
if (isBrowserEnv()) {
|
|
30897
30481
|
loadBrowserEnv(container);
|
|
@@ -30924,4 +30508,4 @@ registerReactAttributePlugin();
|
|
|
30924
30508
|
registerDirectionalLight();
|
|
30925
30509
|
registerOrthoCamera();
|
|
30926
30510
|
|
|
30927
|
-
export { ACustomAnimate, ARC3D_NUMBER_TYPE, ARC_NUMBER_TYPE, AREA_NUMBER_TYPE, AbstractGraphicRender, Animate, AnimateGroup, AnimateGroup1, AnimateMode, AnimateStatus, AnimateStepType, Application, Arc, Arc3d, Arc3dRender, ArcRender, ArcRenderContribution, Area, AreaRender, AreaRenderContribution, AttributeAnimate, AttributeUpdateType, AutoEnablePlugins, BaseCanvas, BaseEnvContribution, BaseRender, BaseRenderContributionTime, BaseWindowHandlerContribution, Basis, BeforeRenderConstribution, BoundsContext, BoundsPicker, BrowserEnvContribution, CIRCLE_NUMBER_TYPE, Canvas3DDrawItemInterceptor, Canvas3DPickItemInterceptor, CanvasArc3dPicker, CanvasArcPicker, CanvasAreaPicker, CanvasCirclePicker, CanvasFactory, CanvasGifImagePicker, CanvasGlyphPicker, CanvasGroupPicker, CanvasImagePicker, CanvasLinePicker, CanvasLottiePicker, CanvasPathPicker, CanvasPickerContribution, CanvasPolygonPicker, CanvasPyramid3dPicker, CanvasRect3dPicker, CanvasRectPicker, CanvasRichTextPicker, CanvasSymbolPicker, CanvasTextLayout, CanvasTextPicker, CbAnimate, Circle, CircleRender, CircleRenderContribution, ClipAngleAnimate, ClipDirectionAnimate, ClipGraphicAnimate, ClipRadiusAnimate, ColorInterpolate, ColorStore, ColorType, CommonDrawItemInterceptorContribution, CommonRenderContribution, Container, ContainerModule, Context2dFactory, ContributionProvider, CurveContext, CurveTypeEnum, CustomEvent, CustomPath2D, CustomSymbolClass, DEFAULT_TEXT_FONT_FAMILY, DebugDrawItemInterceptorContribution, DefaultArcAllocate, DefaultArcAttribute, DefaultArcRenderContribution, DefaultAreaAllocate, DefaultAreaAttribute, DefaultAreaTextureRenderContribution, DefaultAttribute, DefaultBaseBackgroundRenderContribution, DefaultBaseInteractiveRenderContribution, DefaultBaseTextureRenderContribution, DefaultCanvasAllocate, DefaultCanvasArcRender, DefaultCanvasAreaRender, DefaultCanvasCircleRender, DefaultCanvasGroupRender, DefaultCanvasImageRender, DefaultCanvasLineRender, DefaultCanvasPathRender, DefaultCanvasPolygonRender, DefaultCanvasRectRender, DefaultCanvasSymbolRender, DefaultCanvasTextRender, DefaultCircleAllocate, DefaultCircleAttribute, DefaultCircleRenderContribution, DefaultConnectAttribute, DefaultDebugAttribute, DefaultFillStyle, DefaultGlobal, DefaultGlobalPickerService, DefaultGlyphAttribute, DefaultGraphicAllocate, DefaultGraphicMemoryManager, DefaultGraphicService, DefaultGraphicUtil, DefaultGroupAttribute, DefaultGroupBackgroundRenderContribution, DefaultImageAttribute, DefaultImageRenderContribution, DefaultLayerService, DefaultLayout, DefaultLineAllocate, DefaultLineAttribute, DefaultMat4Allocate, DefaultMatrixAllocate, DefaultMorphingAnimateConfig, DefaultPathAllocate, DefaultPathAttribute, DefaultPickService, DefaultPickStyle, DefaultPolygonAttribute, DefaultRect3dAttribute, DefaultRectAllocate, DefaultRectAttribute, DefaultRectRenderContribution, DefaultRenderService, DefaultRichTextAttribute, DefaultRichTextIconAttribute, DefaultStateAnimateConfig, DefaultStrokeStyle, DefaultStyle, DefaultSymbolAllocate, DefaultSymbolAttribute, DefaultSymbolClipRangeStrokeRenderContribution, DefaultSymbolRenderContribution, DefaultTextAllocate, DefaultTextAttribute, DefaultTextMeasureContribution, DefaultTextStyle, DefaultTicker, DefaultTimeline, DefaultTransform, DefaultTransformUtil, DefaultWindow, Direction$1 as Direction, DirectionalLight, DragNDrop, DrawContribution, DrawItemInterceptor, DynamicLayerHandlerContribution, Easing, Edge, EditModule, EmptyContext2d, EnvContribution, EventManager, EventSystem, EventTarget, FORMAT_ELEMENT_COMMAND, FORMAT_TEXT_COMMAND, Factory, FadeInPlus, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, FlexLayoutPlugin, Fragment, GLYPH_NUMBER_TYPE, GRAPHIC_UPDATE_TAG_KEY, GROUP_NUMBER_TYPE, Generator, Gesture, GifImage, GlobalPickerService, Glyph, GlyphRender, Graphic, GraphicAnimate, GraphicCreator$1 as GraphicCreator, GraphicPicker, GraphicRender, GraphicService, GraphicUtil, Group, GroupFadeIn, GroupFadeOut, GroupRender, GroupRenderContribution, GroupUpdateAABBBoundsMode, HtmlAttributePlugin, IContainPointMode, IMAGE_NUMBER_TYPE, Image$1 as Image, ImageRender, ImageRenderContribution, IncreaseCount, IncrementalDrawContribution, InputText, InteractiveDrawItemInterceptorContribution, InteractivePickItemInterceptorContribution, InteractiveSubRenderContribution, LINE_NUMBER_TYPE, Layer, LayerService, Line$1 as Line, LineRender, Linear, LinearClosed, Lottie, ManualTickHandler, ManualTicker, Mat4Allocate, MathArcPicker, MathAreaPicker, MathCirclePicker, MathGlyphPicker, MathImagePicker, MathLinePicker, MathPathPicker, MathPickerContribution, MathPolygonPicker, MathRectPicker, MathSymbolPicker, MathTextPicker, MatrixAllocate, MeasureModeEnum, Meteor, MonotoneX, MonotoneY, MorphingPath, MotionPath, MultiToOneMorphingPath, NOWORK_ANIMATE_ATTR, Node, OrthoCamera, PATH_NUMBER_TYPE, POLYGON_NUMBER_TYPE, PURE_STYLE_KEY, PYRAMID3D_NUMBER_TYPE, Path, PathRender, PathRenderContribution, PickItemInterceptor, PickServiceInterceptor, PickerService, PluginService, Polygon, PolygonRender, PolygonRenderContribution, Pyramid3d, Pyramid3dRender, RAFTickHandler, REACT_TO_CANOPUS_EVENTS, REACT_TO_CANOPUS_EVENTS_LIST, RECT3D_NUMBER_TYPE, RECT_NUMBER_TYPE, RICHTEXT_NUMBER_TYPE, RafBasedSTO, ReactAttributePlugin, Rect, Rect3DRender, Rect3d, RectRender, RectRenderContribution, ReflectSegContext, RenderSelector, RenderService, ResourceLoader, RichText, RichTextEditPlugin, RichTextRender, RotateBySphereAnimate, SVG_ATTRIBUTE_MAP, SVG_ATTRIBUTE_MAP_KEYS, SVG_PARSE_ATTRIBUTE_MAP, SVG_PARSE_ATTRIBUTE_MAP_KEYS, SYMBOL_NUMBER_TYPE, SegContext, ShadowPickServiceInterceptorContribution, ShadowRoot, ShadowRootDrawItemInterceptorContribution, ShadowRootPickItemInterceptorContribution, SplitRectAfterRenderContribution, SplitRectBeforeRenderContribution, Stage, StaticLayerHandlerContribution, Step$1 as Step, StreamLight, SubAnimate, Symbol$1 as Symbol, SymbolRender, SymbolRenderContribution, TEXT_NUMBER_TYPE, TagPointsUpdate, Text, TextDirection, TextMeasureContribution, TextRender, TextRenderContribution, Theme, TimeOutTickHandler, TransformUtil, UpdateTag, VArc, VArc3d, VArea, VCircle, VGlobal, VGlyph, VGroup, VImage, VLine, VPath, VPolygon, VPyramid3d, VRect, VRect3d, VRichText, VSymbol, VText, VWindow, ViewTransform3dPlugin, VirtualLayerHandlerContribution, WILDCARD, WindowHandlerContribution, WrapText, XMLParser, _calculateLineHeight, _interpolateColor, _registerArc, addArcToBezierPath$1 as addArcToBezierPath, addAttributeToPrototype, alignBezierCurves, alignSubpath, application, applyTransformOnBezierCurves, arc3dCanvasPickModule, arc3dModule, arcCanvasPickModule, arcMathPickModule, arcModule, areaCanvasPickModule, areaMathPickModule, areaModule, bezier, bezierCurversToPath, binarySplitPolygon, bindContributionProvider, bindContributionProviderNoSingletonScope, boundStroke, browserEnvModule, builtInSymbolStrMap, builtinSymbols, builtinSymbolsMap, calcLineCache, calculateArcCornerRadius, calculateLineHeight, canvasAllocate, centroidOfSubpath, circleBounds, circleCanvasPickModule, circleMathPickModule, circleModule, clock, cloneGraphic, colorEqual, colorStringInterpolationToStr, container, cornerTangents, createArc, createArc3d, createArea, createCircle, createColor, createConicalGradient, createGifImage, createGlyph, createGroup, createImage, createImageElement$1 as createImageElement, createLine, createLottie, createMat4, createPath, createPolygon, createPyramid3d, createRect, createRect3d, createRectPath, createRichText, createShadowRoot, createStage, createSymbol, createText, createWrapText, cubicCalc, cubicLength, cubicPointAt, cubicSubdivide, decodeReactDom, defaultArcAllocate, defaultArcBackgroundRenderContribution, defaultArcRenderContribution, defaultArcTextureRenderContribution, defaultAreaAllocate, defaultBaseBackgroundRenderContribution, defaultBaseTextureRenderContribution, defaultCircleAllocate, defaultCircleBackgroundRenderContribution, defaultCircleRenderContribution, defaultCircleTextureRenderContribution, defaultGraphicMemoryManager, defaultGroupBackgroundRenderContribution, defaultImageBackgroundRenderContribution, defaultImageRenderContribution, defaultLineAllocate, defaultPathAllocate, defaultRectAllocate, defaultRectBackgroundRenderContribution, defaultRectRenderContribution, defaultRectTextureRenderContribution, defaultSymbolAllocate, defaultSymbolBackgroundRenderContribution, defaultSymbolClipRangeStrokeRenderContribution, defaultSymbolRenderContribution, defaultSymbolTextureRenderContribution, defaultTextAllocate, defaultTicker, defaultTimeline, drawArc, drawArcPath$1 as drawArcPath, drawAreaSegments, drawIncrementalAreaSegments, drawIncrementalSegments, drawSegments, enumCommandMap, feishuEnvModule, fillVisible, findBestMorphingRotation, findConfigIndexByCursorIdx, findCursorIdxByConfigIndex, findNextGraphic, flatten_simplify, foreach, foreachAsync, genBasisSegments, genBasisTypeSegments, genLinearClosedSegments, genLinearClosedTypeSegments, genLinearSegments, genLinearTypeSegments, genMonotoneXSegments, genMonotoneXTypeSegments, genMonotoneYSegments, genMonotoneYTypeSegments, genNumberType, genStepSegments, genStepTypeSegments, generatorPathEasingFunc, getAttributeFromDefaultAttrList, getConicGradientAt, getCurrentEnv, getExtraModelMatrix, getModelMatrix, getRichTextBounds, getScaledStroke, getTextBounds, getTheme, getThemeFromGroup, gifImageCanvasPickModule, gifImageModule, globalTheme, glyphCanvasPickModule, glyphMathPickModule, glyphModule, graphicCreator, graphicService, graphicUtil, harmonyEnvModule, identityMat4, imageCanvasPickModule, imageMathPickModule, imageModule, incrementalAddTo, initAllEnv, initBrowserEnv, initFeishuEnv, initHarmonyEnv, initLynxEnv, initNodeEnv, initTTEnv, initTaroEnv, initWxEnv, inject, injectable, interpolateColor, interpolateGradientConicalColor, interpolateGradientLinearColor, interpolateGradientRadialColor, interpolatePureColorArray, intersect, isBrowserEnv, isNodeEnv, isSvg, isTransformKey, isXML, jsx, layerService, lineCanvasPickModule, lineMathPickModule, lineModule, loadAllEnv, loadAllModule, loadBrowserEnv, loadFeishuEnv, loadHarmonyEnv, loadLynxEnv, loadNodeEnv, loadTTEnv, loadTaroEnv, loadWxEnv, lookAt, lottieCanvasPickModule, lottieModule, lynxEnvModule, mat3Tomat4, mat4Allocate, matrixAllocate, morphPath, multiInject, multiToOneMorph, multiplyMat4Mat3, multiplyMat4Mat4, named, newThemeObj, nodeEnvModule, oneToMultiMorph, ortho, parsePadding, parseStroke, parseSvgPath, pathCanvasPickModule, pathMathPickModule, pathModule, pathToBezierCurves, point$3 as point, pointEqual, pointInterpolation, pointInterpolationHighPerformance, pointsEqual, pointsInterpolation, polygonCanvasPickModule, polygonMathPickModule, polygonModule, preLoadAllModule, pyramid3dCanvasPickModule, pyramid3dModule, quadCalc, quadLength, quadPointAt, rafBasedSto, rect3dCanvasPickModule, rect3dModule, rectCanvasPickModule, rectFillVisible, rectMathPickModule, rectModule, rectStrokeVisible, recursiveCallBinarySplit, registerArc, registerArc3d, registerArc3dGraphic, registerArcGraphic, registerArea, registerAreaGraphic, registerCircle, registerCircleGraphic, registerDirectionalLight, registerFlexLayoutPlugin, registerGlyph, registerGlyphGraphic, registerGroup, registerGroupGraphic, registerHtmlAttributePlugin, registerImage, registerImageGraphic, registerLine, registerLineGraphic, registerOrthoCamera, registerPath, registerPathGraphic, registerPolygon, registerPolygonGraphic, registerPyramid3d, registerPyramid3dGraphic, registerReactAttributePlugin, registerRect, registerRect3d, registerRect3dGraphic, registerRectGraphic, registerRichtext, registerRichtextGraphic, registerShadowRoot, registerShadowRootGraphic, registerSymbol, registerSymbolGraphic, registerText, registerTextGraphic, registerViewTransform3dPlugin, registerWrapText, registerWrapTextGraphic, renderCommandList, rewriteProto, richTextMathPickModule, richtextCanvasPickModule, richtextModule, rotateX, rotateY, rotateZ, roughModule, runFill, runStroke, scaleMat4, segments, shouldUseMat4, snapLength, splitArc, splitArea, splitCircle, splitGraphic, splitLine, splitPath, splitPolygon, splitRect, splitToGrids, strCommandMap, strokeVisible, symbolCanvasPickModule, symbolMathPickModule, symbolModule, taroEnvModule, textAttributesToStyle, textCanvasPickModule, textDrawOffsetX, textDrawOffsetY, textLayoutOffsetY, textMathPickModule, textModule, transformKeys, transformMat4, transformUtil, translate, ttEnvModule, version, verticalLayout, vglobal, waitForAllSubLayers, wrapCanvas, wrapContext, wxEnvModule, xul };
|
|
30511
|
+
export { ACustomAnimate, ARC3D_NUMBER_TYPE, ARC_NUMBER_TYPE, AREA_NUMBER_TYPE, AbstractGraphicRender, Animate, AnimateGroup, AnimateGroup1, AnimateMode, AnimateStatus, AnimateStepType, Application, Arc, Arc3d, Arc3dRender, ArcRender, ArcRenderContribution, Area, AreaRender, AreaRenderContribution, AttributeAnimate, AttributeUpdateType, AutoEnablePlugins, BaseCanvas, BaseEnvContribution, BaseRender, BaseRenderContributionTime, BaseWindowHandlerContribution, Basis, BeforeRenderConstribution, BoundsContext, BoundsPicker, BrowserEnvContribution, CIRCLE_NUMBER_TYPE, Canvas3DDrawItemInterceptor, Canvas3DPickItemInterceptor, CanvasArc3dPicker, CanvasArcPicker, CanvasAreaPicker, CanvasCirclePicker, CanvasFactory, CanvasGlyphPicker, CanvasGroupPicker, CanvasImagePicker, CanvasLinePicker, CanvasLottiePicker, CanvasPathPicker, CanvasPickerContribution, CanvasPolygonPicker, CanvasPyramid3dPicker, CanvasRect3dPicker, CanvasRectPicker, CanvasRichTextPicker, CanvasSymbolPicker, CanvasTextLayout, CanvasTextPicker, CbAnimate, Circle, CircleRender, CircleRenderContribution, ClipAngleAnimate, ClipDirectionAnimate, ClipGraphicAnimate, ClipRadiusAnimate, ColorInterpolate, ColorStore, ColorType, CommonDrawItemInterceptorContribution, CommonRenderContribution, Container, ContainerModule, Context2dFactory, ContributionProvider, CurveContext, CurveTypeEnum, CustomEvent, CustomPath2D, CustomSymbolClass, DEFAULT_TEXT_FONT_FAMILY, DebugDrawItemInterceptorContribution, DefaultArcAllocate, DefaultArcAttribute, DefaultArcRenderContribution, DefaultAreaAllocate, DefaultAreaAttribute, DefaultAreaTextureRenderContribution, DefaultAttribute, DefaultBaseBackgroundRenderContribution, DefaultBaseInteractiveRenderContribution, DefaultBaseTextureRenderContribution, DefaultCanvasAllocate, DefaultCanvasArcRender, DefaultCanvasAreaRender, DefaultCanvasCircleRender, DefaultCanvasGroupRender, DefaultCanvasImageRender, DefaultCanvasLineRender, DefaultCanvasPathRender, DefaultCanvasPolygonRender, DefaultCanvasRectRender, DefaultCanvasSymbolRender, DefaultCanvasTextRender, DefaultCircleAllocate, DefaultCircleAttribute, DefaultCircleRenderContribution, DefaultConnectAttribute, DefaultDebugAttribute, DefaultFillStyle, DefaultGlobal, DefaultGlobalPickerService, DefaultGlyphAttribute, DefaultGraphicAllocate, DefaultGraphicMemoryManager, DefaultGraphicService, DefaultGraphicUtil, DefaultGroupAttribute, DefaultGroupBackgroundRenderContribution, DefaultImageAttribute, DefaultImageRenderContribution, DefaultLayerService, DefaultLayout, DefaultLineAllocate, DefaultLineAttribute, DefaultMat4Allocate, DefaultMatrixAllocate, DefaultMorphingAnimateConfig, DefaultPathAllocate, DefaultPathAttribute, DefaultPickService, DefaultPickStyle, DefaultPolygonAttribute, DefaultRect3dAttribute, DefaultRectAllocate, DefaultRectAttribute, DefaultRectRenderContribution, DefaultRenderService, DefaultRichTextAttribute, DefaultRichTextIconAttribute, DefaultStateAnimateConfig, DefaultStrokeStyle, DefaultStyle, DefaultSymbolAllocate, DefaultSymbolAttribute, DefaultSymbolClipRangeStrokeRenderContribution, DefaultSymbolRenderContribution, DefaultTextAllocate, DefaultTextAttribute, DefaultTextMeasureContribution, DefaultTextStyle, DefaultTicker, DefaultTimeline, DefaultTransform, DefaultTransformUtil, DefaultWindow, Direction$1 as Direction, DirectionalLight, DragNDrop, DrawContribution, DrawItemInterceptor, DynamicLayerHandlerContribution, Easing, Edge, EditModule, EmptyContext2d, EnvContribution, EventManager, EventSystem, EventTarget, FORMAT_ALL_TEXT_COMMAND, FORMAT_ELEMENT_COMMAND, FORMAT_TEXT_COMMAND, Factory, FadeInPlus, FederatedEvent, FederatedMouseEvent, FederatedPointerEvent, FederatedWheelEvent, FlexLayoutPlugin, Fragment, GLYPH_NUMBER_TYPE, GRAPHIC_UPDATE_TAG_KEY, GROUP_NUMBER_TYPE, Generator, Gesture, GlobalPickerService, Glyph, GlyphRender, Graphic, GraphicAnimate, GraphicCreator$1 as GraphicCreator, GraphicPicker, GraphicRender, GraphicService, GraphicUtil, Group, GroupFadeIn, GroupFadeOut, GroupRender, GroupRenderContribution, GroupUpdateAABBBoundsMode, HtmlAttributePlugin, IContainPointMode, IMAGE_NUMBER_TYPE, Image$1 as Image, ImageRender, ImageRenderContribution, IncreaseCount, IncrementalDrawContribution, InputText, InteractiveDrawItemInterceptorContribution, InteractivePickItemInterceptorContribution, InteractiveSubRenderContribution, LINE_NUMBER_TYPE, Layer, LayerService, Line$1 as Line, LineRender, Linear, LinearClosed, Lottie, ManualTickHandler, ManualTicker, Mat4Allocate, MathArcPicker, MathAreaPicker, MathCirclePicker, MathGlyphPicker, MathImagePicker, MathLinePicker, MathPathPicker, MathPickerContribution, MathPolygonPicker, MathRectPicker, MathSymbolPicker, MathTextPicker, MatrixAllocate, MeasureModeEnum, Meteor, MonotoneX, MonotoneY, MorphingPath, MotionPath, MultiToOneMorphingPath, NOWORK_ANIMATE_ATTR, Node, OrthoCamera, PATH_NUMBER_TYPE, POLYGON_NUMBER_TYPE, PURE_STYLE_KEY, PYRAMID3D_NUMBER_TYPE, Path, PathRender, PathRenderContribution, PickItemInterceptor, PickServiceInterceptor, PickerService, PluginService, Polygon, PolygonRender, PolygonRenderContribution, Pyramid3d, Pyramid3dRender, RAFTickHandler, REACT_TO_CANOPUS_EVENTS, REACT_TO_CANOPUS_EVENTS_LIST, RECT3D_NUMBER_TYPE, RECT_NUMBER_TYPE, RICHTEXT_NUMBER_TYPE, RafBasedSTO, ReactAttributePlugin, Rect, Rect3DRender, Rect3d, RectRender, RectRenderContribution, ReflectSegContext, RenderSelector, RenderService, ResourceLoader, RichText, RichTextEditPlugin, RichTextRender, RotateBySphereAnimate, SVG_ATTRIBUTE_MAP, SVG_ATTRIBUTE_MAP_KEYS, SVG_PARSE_ATTRIBUTE_MAP, SVG_PARSE_ATTRIBUTE_MAP_KEYS, SYMBOL_NUMBER_TYPE, SegContext, ShadowPickServiceInterceptorContribution, ShadowRoot, ShadowRootDrawItemInterceptorContribution, ShadowRootPickItemInterceptorContribution, SplitRectAfterRenderContribution, SplitRectBeforeRenderContribution, Stage, StaticLayerHandlerContribution, Step$1 as Step, StreamLight, SubAnimate, Symbol$1 as Symbol, SymbolRender, SymbolRenderContribution, TEXT_NUMBER_TYPE, TagPointsUpdate, Text, TextDirection, TextMeasureContribution, TextRender, TextRenderContribution, Theme, TimeOutTickHandler, TransformUtil, UpdateTag, VArc, VArc3d, VArea, VCircle, VGlobal, VGlyph, VGroup, VImage, VLine, VPath, VPolygon, VPyramid3d, VRect, VRect3d, VRichText, VSymbol, VText, VWindow, ViewTransform3dPlugin, VirtualLayerHandlerContribution, WILDCARD, WindowHandlerContribution, WrapText, XMLParser, _calculateLineHeight, _interpolateColor, _registerArc, addArcToBezierPath$1 as addArcToBezierPath, addAttributeToPrototype, alignBezierCurves, alignSubpath, application, applyTransformOnBezierCurves, arc3dCanvasPickModule, arc3dModule, arcCanvasPickModule, arcMathPickModule, arcModule, areaCanvasPickModule, areaMathPickModule, areaModule, bezier, bezierCurversToPath, binarySplitPolygon, bindContributionProvider, bindContributionProviderNoSingletonScope, boundStroke, browserEnvModule, builtInSymbolStrMap, builtinSymbols, builtinSymbolsMap, calcLineCache, calculateArcCornerRadius, calculateLineHeight, canvasAllocate, centroidOfSubpath, circleBounds, circleCanvasPickModule, circleMathPickModule, circleModule, clock, cloneGraphic, colorEqual, colorStringInterpolationToStr, container, cornerTangents, createArc, createArc3d, createArea, createCircle, createColor, createConicalGradient, createGlyph, createGroup, createImage, createImageElement$1 as createImageElement, createLine, createLottie, createMat4, createPath, createPolygon, createPyramid3d, createRect, createRect3d, createRectPath, createRichText, createShadowRoot, createStage, createSymbol, createText, createWrapText, cubicCalc, cubicLength, cubicPointAt, cubicSubdivide, decodeReactDom, defaultArcAllocate, defaultArcBackgroundRenderContribution, defaultArcRenderContribution, defaultArcTextureRenderContribution, defaultAreaAllocate, defaultBaseBackgroundRenderContribution, defaultBaseTextureRenderContribution, defaultCircleAllocate, defaultCircleBackgroundRenderContribution, defaultCircleRenderContribution, defaultCircleTextureRenderContribution, defaultGraphicMemoryManager, defaultGroupBackgroundRenderContribution, defaultImageBackgroundRenderContribution, defaultImageRenderContribution, defaultLineAllocate, defaultPathAllocate, defaultRectAllocate, defaultRectBackgroundRenderContribution, defaultRectRenderContribution, defaultRectTextureRenderContribution, defaultSymbolAllocate, defaultSymbolBackgroundRenderContribution, defaultSymbolClipRangeStrokeRenderContribution, defaultSymbolRenderContribution, defaultSymbolTextureRenderContribution, defaultTextAllocate, defaultTicker, defaultTimeline, drawArc, drawArcPath$1 as drawArcPath, drawAreaSegments, drawIncrementalAreaSegments, drawIncrementalSegments, drawSegments, enumCommandMap, feishuEnvModule, fillVisible, findBestMorphingRotation, findConfigIndexByCursorIdx, findCursorIdxByConfigIndex, findNextGraphic, flatten_simplify, foreach, foreachAsync, genBasisSegments, genBasisTypeSegments, genLinearClosedSegments, genLinearClosedTypeSegments, genLinearSegments, genLinearTypeSegments, genMonotoneXSegments, genMonotoneXTypeSegments, genMonotoneYSegments, genMonotoneYTypeSegments, genNumberType, genStepSegments, genStepTypeSegments, generatorPathEasingFunc, getAttributeFromDefaultAttrList, getConicGradientAt, getCurrentEnv, getDefaultCharacterConfig, getExtraModelMatrix, getModelMatrix, getRichTextBounds, getScaledStroke, getTextBounds, getTheme, getThemeFromGroup, globalTheme, glyphCanvasPickModule, glyphMathPickModule, glyphModule, graphicCreator, graphicService, graphicUtil, harmonyEnvModule, identityMat4, imageCanvasPickModule, imageMathPickModule, imageModule, incrementalAddTo, initAllEnv, initBrowserEnv, initFeishuEnv, initHarmonyEnv, initLynxEnv, initNodeEnv, initTTEnv, initTaroEnv, initWxEnv, inject, injectable, interpolateColor, interpolateGradientConicalColor, interpolateGradientLinearColor, interpolateGradientRadialColor, interpolatePureColorArray, intersect, isBrowserEnv, isNodeEnv, isSvg, isTransformKey, isXML, jsx, layerService, lineCanvasPickModule, lineMathPickModule, lineModule, loadAllEnv, loadAllModule, loadBrowserEnv, loadFeishuEnv, loadHarmonyEnv, loadLynxEnv, loadNodeEnv, loadTTEnv, loadTaroEnv, loadWxEnv, lookAt, lottieCanvasPickModule, lottieModule, lynxEnvModule, mat3Tomat4, mat4Allocate, matrixAllocate, morphPath, multiInject, multiToOneMorph, multiplyMat4Mat3, multiplyMat4Mat4, named, newThemeObj, nodeEnvModule, oneToMultiMorph, ortho, parsePadding, parseStroke, parseSvgPath, pathCanvasPickModule, pathMathPickModule, pathModule, pathToBezierCurves, point$3 as point, pointEqual, pointInterpolation, pointInterpolationHighPerformance, pointsEqual, pointsInterpolation, polygonCanvasPickModule, polygonMathPickModule, polygonModule, preLoadAllModule, pyramid3dCanvasPickModule, pyramid3dModule, quadCalc, quadLength, quadPointAt, rafBasedSto, rect3dCanvasPickModule, rect3dModule, rectCanvasPickModule, rectFillVisible, rectMathPickModule, rectModule, rectStrokeVisible, recursiveCallBinarySplit, registerArc, registerArc3d, registerArc3dGraphic, registerArcGraphic, registerArea, registerAreaGraphic, registerCircle, registerCircleGraphic, registerDirectionalLight, registerFlexLayoutPlugin, registerGlyph, registerGlyphGraphic, registerGroup, registerGroupGraphic, registerHtmlAttributePlugin, registerImage, registerImageGraphic, registerLine, registerLineGraphic, registerOrthoCamera, registerPath, registerPathGraphic, registerPolygon, registerPolygonGraphic, registerPyramid3d, registerPyramid3dGraphic, registerReactAttributePlugin, registerRect, registerRect3d, registerRect3dGraphic, registerRectGraphic, registerRichtext, registerRichtextGraphic, registerShadowRoot, registerShadowRootGraphic, registerSymbol, registerSymbolGraphic, registerText, registerTextGraphic, registerViewTransform3dPlugin, registerWrapText, registerWrapTextGraphic, renderCommandList, rewriteProto, richTextMathPickModule, richtextCanvasPickModule, richtextModule, rotateX, rotateY, rotateZ, roughModule, runFill, runStroke, scaleMat4, segments, shouldUseMat4, snapLength, splitArc, splitArea, splitCircle, splitGraphic, splitLine, splitPath, splitPolygon, splitRect, splitToGrids, strCommandMap, strokeVisible, symbolCanvasPickModule, symbolMathPickModule, symbolModule, taroEnvModule, textAttributesToStyle, textCanvasPickModule, textDrawOffsetX, textDrawOffsetY, textLayoutOffsetY, textMathPickModule, textModule, transformKeys, transformMat4, transformUtil, translate, ttEnvModule, version, verticalLayout, vglobal, waitForAllSubLayers, wrapCanvas, wrapContext, wxEnvModule, xul };
|