@visactor/vrender 0.19.1 → 0.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/dist/index.js +977 -450
- package/dist/index.min.js +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1494,17 +1494,17 @@
|
|
|
1494
1494
|
var EnvContribution = Symbol["for"]("EnvContribution");
|
|
1495
1495
|
var VGlobal = Symbol["for"]("VGlobal");
|
|
1496
1496
|
|
|
1497
|
-
var __decorate$
|
|
1497
|
+
var __decorate$1H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
1498
1498
|
var d,
|
|
1499
1499
|
c = arguments.length,
|
|
1500
1500
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
1501
1501
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
1502
1502
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1503
1503
|
},
|
|
1504
|
-
__metadata$
|
|
1504
|
+
__metadata$1h = undefined && undefined.__metadata || function (k, v) {
|
|
1505
1505
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
1506
1506
|
},
|
|
1507
|
-
__param$
|
|
1507
|
+
__param$S = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
1508
1508
|
return function (target, key) {
|
|
1509
1509
|
decorator(target, key, paramIndex);
|
|
1510
1510
|
};
|
|
@@ -1748,7 +1748,7 @@
|
|
|
1748
1748
|
}
|
|
1749
1749
|
}]);
|
|
1750
1750
|
}();
|
|
1751
|
-
exports.DefaultGlobal = __decorate$
|
|
1751
|
+
exports.DefaultGlobal = __decorate$1H([injectable(), __param$S(0, inject(ContributionProvider)), __param$S(0, named(EnvContribution)), __metadata$1h("design:paramtypes", [Object])], exports.DefaultGlobal);
|
|
1752
1752
|
|
|
1753
1753
|
function getDefaultExportFromCjs (x) {
|
|
1754
1754
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -5481,7 +5481,7 @@
|
|
|
5481
5481
|
return "number" != typeof measurement.actualBoundingBoxAscent || "number" != typeof measurement.actualBoundingBoxDescent ? (result.width = Math.floor(measurement.width), result.height = character.fontSize || 0, result.ascent = result.height, result.descent = 0) : (result.width = Math.floor(measurement.width), result.height = Math.floor(measurement.actualBoundingBoxAscent + measurement.actualBoundingBoxDescent), result.ascent = Math.floor(measurement.actualBoundingBoxAscent), result.descent = result.height - result.ascent), result;
|
|
5482
5482
|
}
|
|
5483
5483
|
|
|
5484
|
-
var __decorate$
|
|
5484
|
+
var __decorate$1G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
5485
5485
|
var d,
|
|
5486
5486
|
c = arguments.length,
|
|
5487
5487
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -5790,9 +5790,9 @@
|
|
|
5790
5790
|
}
|
|
5791
5791
|
}]);
|
|
5792
5792
|
}();
|
|
5793
|
-
ATextMeasure = __decorate$
|
|
5793
|
+
ATextMeasure = __decorate$1G([injectable()], ATextMeasure);
|
|
5794
5794
|
|
|
5795
|
-
var __decorate$
|
|
5795
|
+
var __decorate$1F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
5796
5796
|
var d,
|
|
5797
5797
|
c = arguments.length,
|
|
5798
5798
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -5808,7 +5808,7 @@
|
|
|
5808
5808
|
_inherits(DefaultTextMeasureContribution, _ATextMeasure);
|
|
5809
5809
|
return _createClass(DefaultTextMeasureContribution);
|
|
5810
5810
|
}(ATextMeasure);
|
|
5811
|
-
exports.DefaultTextMeasureContribution = __decorate$
|
|
5811
|
+
exports.DefaultTextMeasureContribution = __decorate$1F([injectable()], exports.DefaultTextMeasureContribution);
|
|
5812
5812
|
|
|
5813
5813
|
var container = new Container();
|
|
5814
5814
|
|
|
@@ -6247,14 +6247,14 @@
|
|
|
6247
6247
|
}();
|
|
6248
6248
|
var canvasAllocate = new DefaultCanvasAllocate();
|
|
6249
6249
|
|
|
6250
|
-
var __decorate$
|
|
6250
|
+
var __decorate$1E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
6251
6251
|
var d,
|
|
6252
6252
|
c = arguments.length,
|
|
6253
6253
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
6254
6254
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
6255
6255
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6256
6256
|
},
|
|
6257
|
-
__metadata$
|
|
6257
|
+
__metadata$1g = undefined && undefined.__metadata || function (k, v) {
|
|
6258
6258
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
6259
6259
|
};
|
|
6260
6260
|
var VWindow = Symbol["for"]("VWindow");
|
|
@@ -6452,19 +6452,19 @@
|
|
|
6452
6452
|
}
|
|
6453
6453
|
}]);
|
|
6454
6454
|
}();
|
|
6455
|
-
exports.DefaultWindow = __decorate$
|
|
6455
|
+
exports.DefaultWindow = __decorate$1E([injectable(), __metadata$1g("design:paramtypes", [])], exports.DefaultWindow);
|
|
6456
6456
|
|
|
6457
|
-
var __decorate$
|
|
6457
|
+
var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
6458
6458
|
var d,
|
|
6459
6459
|
c = arguments.length,
|
|
6460
6460
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
6461
6461
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
6462
6462
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6463
6463
|
},
|
|
6464
|
-
__metadata$
|
|
6464
|
+
__metadata$1f = undefined && undefined.__metadata || function (k, v) {
|
|
6465
6465
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
6466
6466
|
},
|
|
6467
|
-
__param$
|
|
6467
|
+
__param$R = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
6468
6468
|
return function (target, key) {
|
|
6469
6469
|
decorator(target, key, paramIndex);
|
|
6470
6470
|
};
|
|
@@ -6584,7 +6584,7 @@
|
|
|
6584
6584
|
}
|
|
6585
6585
|
}]);
|
|
6586
6586
|
}();
|
|
6587
|
-
exports.DefaultGraphicUtil = __decorate$
|
|
6587
|
+
exports.DefaultGraphicUtil = __decorate$1D([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(TextMeasureContribution)), __metadata$1f("design:paramtypes", [Object])], exports.DefaultGraphicUtil);
|
|
6588
6588
|
var TransformMode;
|
|
6589
6589
|
!function (TransformMode) {
|
|
6590
6590
|
TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
|
|
@@ -6660,7 +6660,7 @@
|
|
|
6660
6660
|
}
|
|
6661
6661
|
}]);
|
|
6662
6662
|
}();
|
|
6663
|
-
exports.DefaultTransformUtil = __decorate$
|
|
6663
|
+
exports.DefaultTransformUtil = __decorate$1D([injectable(), __metadata$1f("design:paramtypes", [])], exports.DefaultTransformUtil);
|
|
6664
6664
|
|
|
6665
6665
|
var defaultThemeObj = {
|
|
6666
6666
|
arc: DefaultArcAttribute,
|
|
@@ -6794,7 +6794,7 @@
|
|
|
6794
6794
|
return null;
|
|
6795
6795
|
}
|
|
6796
6796
|
|
|
6797
|
-
var __awaiter$
|
|
6797
|
+
var __awaiter$5 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
6798
6798
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
6799
6799
|
function fulfilled(value) {
|
|
6800
6800
|
try {
|
|
@@ -6886,7 +6886,7 @@
|
|
|
6886
6886
|
key: "forEachChildrenAsync",
|
|
6887
6887
|
value: function forEachChildrenAsync(cb) {
|
|
6888
6888
|
var reverse = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
6889
|
-
return __awaiter$
|
|
6889
|
+
return __awaiter$5(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6890
6890
|
var child, i, breakTag, _child2, _i2, _breakTag;
|
|
6891
6891
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6892
6892
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7395,7 +7395,23 @@
|
|
|
7395
7395
|
}, {
|
|
7396
7396
|
key: "composedPath",
|
|
7397
7397
|
value: function composedPath() {
|
|
7398
|
-
return !this.manager || this.path && this.path[this.path.length - 1] === this.target || (this.path = this.target ? this.manager.propagationPath(this.target) : []), this.path;
|
|
7398
|
+
return !this.manager || this.path && this.path[this.path.length - 1] === this.target || (this.path = this.target ? this.manager.propagationPath(this.target) : []), this.composedDetailPath(), this.path;
|
|
7399
|
+
}
|
|
7400
|
+
}, {
|
|
7401
|
+
key: "composedDetailPath",
|
|
7402
|
+
value: function composedDetailPath() {
|
|
7403
|
+
this.pickParams && this.pickParams.graphic && (this.detailPath = this.path.slice(), this._composedDetailPath(this.pickParams));
|
|
7404
|
+
}
|
|
7405
|
+
}, {
|
|
7406
|
+
key: "_composedDetailPath",
|
|
7407
|
+
value: function _composedDetailPath(params) {
|
|
7408
|
+
if (params && params.graphic) {
|
|
7409
|
+
var g = this.pickParams.graphic;
|
|
7410
|
+
if (g.stage) {
|
|
7411
|
+
var path = g.stage.eventSystem.manager.propagationPath(g);
|
|
7412
|
+
this.detailPath.push(path), this._composedDetailPath(params.params);
|
|
7413
|
+
}
|
|
7414
|
+
}
|
|
7399
7415
|
}
|
|
7400
7416
|
}, {
|
|
7401
7417
|
key: "preventDefault",
|
|
@@ -7581,7 +7597,7 @@
|
|
|
7581
7597
|
function EventManager(root, config) {
|
|
7582
7598
|
var _this = this;
|
|
7583
7599
|
_classCallCheck(this, EventManager);
|
|
7584
|
-
this.dispatch = new EventEmitter(), this.cursorTarget = null, this.mappingState = {
|
|
7600
|
+
this.dispatch = new EventEmitter(), this.cursorTarget = null, this.pauseNotify = !1, this.mappingState = {
|
|
7585
7601
|
trackingData: {}
|
|
7586
7602
|
}, this.eventPool = new Map(), this.onPointerDown = function (from, target) {
|
|
7587
7603
|
if (!(from instanceof FederatedPointerEvent)) return void Logger.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");
|
|
@@ -7753,6 +7769,7 @@
|
|
|
7753
7769
|
}, {
|
|
7754
7770
|
key: "notifyTarget",
|
|
7755
7771
|
value: function notifyTarget(e, type) {
|
|
7772
|
+
if (this.pauseNotify) return;
|
|
7756
7773
|
type = null != type ? type : e.type;
|
|
7757
7774
|
var key = e.eventPhase === e.CAPTURING_PHASE || e.eventPhase === e.AT_TARGET ? "".concat(type, "capture") : type;
|
|
7758
7775
|
this.notifyListeners(e, key), e.eventPhase === e.AT_TARGET && this.notifyListeners(e, type);
|
|
@@ -7868,7 +7885,7 @@
|
|
|
7868
7885
|
dispatchEvent: function dispatchEvent(e) {
|
|
7869
7886
|
var _a;
|
|
7870
7887
|
if (!(e instanceof FederatedEvent)) throw new Error("DisplayObject cannot propagate events outside of the Federated Events API");
|
|
7871
|
-
return e.defaultPrevented = !1, e.path = [], e.target = this, null === (_a = null == e ? void 0 : e.manager) || void 0 === _a || _a.dispatchEvent(e), !e.defaultPrevented;
|
|
7888
|
+
return e.defaultPrevented = !1, e.path = [], e.detailPath && (e.detailPath = []), e.target = this, null === (_a = null == e ? void 0 : e.manager) || void 0 === _a || _a.dispatchEvent(e), !e.defaultPrevented;
|
|
7872
7889
|
},
|
|
7873
7890
|
emit: function emit(eventName, object) {
|
|
7874
7891
|
return this.dispatchEvent(new CustomEvent(eventName, object));
|
|
@@ -8074,6 +8091,16 @@
|
|
|
8074
8091
|
nativeEvent.composedPath && nativeEvent.composedPath().length > 0 && (target = nativeEvent.composedPath()[0]);
|
|
8075
8092
|
return target !== (this.domElement.getNativeHandler ? this.domElement.getNativeHandler().nativeCanvas : this.domElement);
|
|
8076
8093
|
}
|
|
8094
|
+
}, {
|
|
8095
|
+
key: "pauseTriggerEvent",
|
|
8096
|
+
value: function pauseTriggerEvent() {
|
|
8097
|
+
this.manager.pauseNotify = !0;
|
|
8098
|
+
}
|
|
8099
|
+
}, {
|
|
8100
|
+
key: "resumeTriggerEvent",
|
|
8101
|
+
value: function resumeTriggerEvent() {
|
|
8102
|
+
this.manager.pauseNotify = !1;
|
|
8103
|
+
}
|
|
8077
8104
|
}]);
|
|
8078
8105
|
}();
|
|
8079
8106
|
|
|
@@ -12557,7 +12584,7 @@
|
|
|
12557
12584
|
return str.startsWith("<");
|
|
12558
12585
|
}
|
|
12559
12586
|
|
|
12560
|
-
var __awaiter$
|
|
12587
|
+
var __awaiter$4 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
12561
12588
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
12562
12589
|
function fulfilled(value) {
|
|
12563
12590
|
try {
|
|
@@ -12586,7 +12613,7 @@
|
|
|
12586
12613
|
group.incrementalAppendChild(graphic);
|
|
12587
12614
|
}
|
|
12588
12615
|
function waitForAllSubLayers(stage) {
|
|
12589
|
-
return __awaiter$
|
|
12616
|
+
return __awaiter$4(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
12590
12617
|
var promiseList, layers;
|
|
12591
12618
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
12592
12619
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -13189,14 +13216,14 @@
|
|
|
13189
13216
|
var VirtualLayerHandlerContribution = Symbol["for"]("VirtualLayerHandlerContribution");
|
|
13190
13217
|
|
|
13191
13218
|
var _DefaultLayerService_,
|
|
13192
|
-
__decorate$
|
|
13219
|
+
__decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
13193
13220
|
var d,
|
|
13194
13221
|
c = arguments.length,
|
|
13195
13222
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
13196
13223
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
13197
13224
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13198
13225
|
},
|
|
13199
|
-
__metadata$
|
|
13226
|
+
__metadata$1e = undefined && undefined.__metadata || function (k, v) {
|
|
13200
13227
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
13201
13228
|
};
|
|
13202
13229
|
exports.DefaultLayerService = _DefaultLayerService_ = /*#__PURE__*/function () {
|
|
@@ -13286,7 +13313,7 @@
|
|
|
13286
13313
|
}
|
|
13287
13314
|
}]);
|
|
13288
13315
|
}();
|
|
13289
|
-
exports.DefaultLayerService.idprefix = "visactor_layer", exports.DefaultLayerService.prefix_count = 0, exports.DefaultLayerService = _DefaultLayerService_ = __decorate$
|
|
13316
|
+
exports.DefaultLayerService.idprefix = "visactor_layer", exports.DefaultLayerService.prefix_count = 0, exports.DefaultLayerService = _DefaultLayerService_ = __decorate$1C([injectable(), __metadata$1e("design:paramtypes", [])], exports.DefaultLayerService);
|
|
13290
13317
|
|
|
13291
13318
|
var coreModule = new ContainerModule(function (bind) {
|
|
13292
13319
|
bind(VGlobal).to(exports.DefaultGlobal).inSingletonScope(), bind(VWindow).to(exports.DefaultWindow), bind(GraphicUtil).to(exports.DefaultGraphicUtil).inSingletonScope(), bind(TransformUtil).to(exports.DefaultTransformUtil).inSingletonScope(), bind(LayerService).to(exports.DefaultLayerService).inSingletonScope();
|
|
@@ -17496,17 +17523,17 @@
|
|
|
17496
17523
|
var matrixAllocate = new DefaultMatrixAllocate();
|
|
17497
17524
|
var mat4Allocate = new DefaultMat4Allocate();
|
|
17498
17525
|
|
|
17499
|
-
var __decorate$
|
|
17526
|
+
var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17500
17527
|
var d,
|
|
17501
17528
|
c = arguments.length,
|
|
17502
17529
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17503
17530
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
17504
17531
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17505
17532
|
},
|
|
17506
|
-
__metadata$
|
|
17533
|
+
__metadata$1d = undefined && undefined.__metadata || function (k, v) {
|
|
17507
17534
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17508
17535
|
},
|
|
17509
|
-
__param$
|
|
17536
|
+
__param$Q = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17510
17537
|
return function (target, key) {
|
|
17511
17538
|
decorator(target, key, paramIndex);
|
|
17512
17539
|
};
|
|
@@ -18242,7 +18269,7 @@
|
|
|
18242
18269
|
}
|
|
18243
18270
|
}]);
|
|
18244
18271
|
}();
|
|
18245
|
-
exports.DefaultGraphicService = __decorate$
|
|
18272
|
+
exports.DefaultGraphicService = __decorate$1B([injectable(), __param$Q(0, inject(GraphicCreator$1)), __metadata$1d("design:paramtypes", [Object])], exports.DefaultGraphicService);
|
|
18246
18273
|
|
|
18247
18274
|
var GraphicCreator = /*#__PURE__*/function () {
|
|
18248
18275
|
function GraphicCreator() {
|
|
@@ -18783,17 +18810,17 @@
|
|
|
18783
18810
|
}), canvasGradient.GetPattern(w + x, h + y, undefined);
|
|
18784
18811
|
}
|
|
18785
18812
|
|
|
18786
|
-
var __decorate$
|
|
18813
|
+
var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18787
18814
|
var d,
|
|
18788
18815
|
c = arguments.length,
|
|
18789
18816
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
18790
18817
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
18791
18818
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18792
18819
|
},
|
|
18793
|
-
__metadata$
|
|
18820
|
+
__metadata$1c = undefined && undefined.__metadata || function (k, v) {
|
|
18794
18821
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
18795
18822
|
},
|
|
18796
|
-
__param$
|
|
18823
|
+
__param$P = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
18797
18824
|
return function (target, key) {
|
|
18798
18825
|
decorator(target, key, paramIndex);
|
|
18799
18826
|
};
|
|
@@ -18881,7 +18908,7 @@
|
|
|
18881
18908
|
}
|
|
18882
18909
|
}]);
|
|
18883
18910
|
}();
|
|
18884
|
-
exports.DefaultBaseInteractiveRenderContribution = __decorate$
|
|
18911
|
+
exports.DefaultBaseInteractiveRenderContribution = __decorate$1A([injectable(), __param$P(0, inject(ContributionProvider)), __param$P(0, named(InteractiveSubRenderContribution)), __metadata$1c("design:paramtypes", [Object])], exports.DefaultBaseInteractiveRenderContribution);
|
|
18885
18912
|
|
|
18886
18913
|
var DefaultBaseTextureRenderContribution = /*#__PURE__*/function () {
|
|
18887
18914
|
function DefaultBaseTextureRenderContribution() {
|
|
@@ -19333,7 +19360,7 @@
|
|
|
19333
19360
|
}
|
|
19334
19361
|
var defaultImageBackgroundRenderContribution = new DefaultImageBackgroundRenderContribution();
|
|
19335
19362
|
|
|
19336
|
-
var __decorate$
|
|
19363
|
+
var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19337
19364
|
var d,
|
|
19338
19365
|
c = arguments.length,
|
|
19339
19366
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19422,7 +19449,7 @@
|
|
|
19422
19449
|
}
|
|
19423
19450
|
}]);
|
|
19424
19451
|
}();
|
|
19425
|
-
exports.SplitRectBeforeRenderContribution = __decorate$
|
|
19452
|
+
exports.SplitRectBeforeRenderContribution = __decorate$1z([injectable()], exports.SplitRectBeforeRenderContribution);
|
|
19426
19453
|
exports.SplitRectAfterRenderContribution = /*#__PURE__*/function () {
|
|
19427
19454
|
function SplitRectAfterRenderContribution() {
|
|
19428
19455
|
_classCallCheck(this, SplitRectAfterRenderContribution);
|
|
@@ -19455,7 +19482,7 @@
|
|
|
19455
19482
|
}
|
|
19456
19483
|
}]);
|
|
19457
19484
|
}();
|
|
19458
|
-
exports.SplitRectAfterRenderContribution = __decorate$
|
|
19485
|
+
exports.SplitRectAfterRenderContribution = __decorate$1z([injectable()], exports.SplitRectAfterRenderContribution);
|
|
19459
19486
|
var defaultRectRenderContribution = new DefaultRectRenderContribution();
|
|
19460
19487
|
var defaultRectTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
19461
19488
|
var defaultRectBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
@@ -19545,17 +19572,17 @@
|
|
|
19545
19572
|
}]);
|
|
19546
19573
|
}(DefaultBaseTextureRenderContribution);
|
|
19547
19574
|
|
|
19548
|
-
var __decorate$
|
|
19575
|
+
var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19549
19576
|
var d,
|
|
19550
19577
|
c = arguments.length,
|
|
19551
19578
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
19552
19579
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
19553
19580
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19554
19581
|
},
|
|
19555
|
-
__metadata$
|
|
19582
|
+
__metadata$1b = undefined && undefined.__metadata || function (k, v) {
|
|
19556
19583
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
19557
19584
|
},
|
|
19558
|
-
__param$
|
|
19585
|
+
__param$O = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
19559
19586
|
return function (target, key) {
|
|
19560
19587
|
decorator(target, key, paramIndex);
|
|
19561
19588
|
};
|
|
@@ -19729,19 +19756,19 @@
|
|
|
19729
19756
|
}
|
|
19730
19757
|
}]);
|
|
19731
19758
|
}(BaseRender);
|
|
19732
|
-
exports.DefaultCanvasArcRender = __decorate$
|
|
19759
|
+
exports.DefaultCanvasArcRender = __decorate$1y([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(ArcRenderContribution)), __metadata$1b("design:paramtypes", [Object])], exports.DefaultCanvasArcRender);
|
|
19733
19760
|
|
|
19734
|
-
var __decorate$
|
|
19761
|
+
var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19735
19762
|
var d,
|
|
19736
19763
|
c = arguments.length,
|
|
19737
19764
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
19738
19765
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
19739
19766
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19740
19767
|
},
|
|
19741
|
-
__metadata$
|
|
19768
|
+
__metadata$1a = undefined && undefined.__metadata || function (k, v) {
|
|
19742
19769
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
19743
19770
|
},
|
|
19744
|
-
__param$
|
|
19771
|
+
__param$N = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
19745
19772
|
return function (target, key) {
|
|
19746
19773
|
decorator(target, key, paramIndex);
|
|
19747
19774
|
};
|
|
@@ -19785,7 +19812,7 @@
|
|
|
19785
19812
|
}
|
|
19786
19813
|
}]);
|
|
19787
19814
|
}(BaseRender);
|
|
19788
|
-
exports.DefaultCanvasCircleRender = __decorate$
|
|
19815
|
+
exports.DefaultCanvasCircleRender = __decorate$1x([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(CircleRenderContribution)), __metadata$1a("design:paramtypes", [Object])], exports.DefaultCanvasCircleRender);
|
|
19789
19816
|
|
|
19790
19817
|
function drawSegItem(ctx, curve, endPercent, params) {
|
|
19791
19818
|
if (!curve.p1) return;
|
|
@@ -19926,7 +19953,7 @@
|
|
|
19926
19953
|
});
|
|
19927
19954
|
}
|
|
19928
19955
|
|
|
19929
|
-
var __decorate$
|
|
19956
|
+
var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19930
19957
|
var d,
|
|
19931
19958
|
c = arguments.length,
|
|
19932
19959
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -20108,7 +20135,7 @@
|
|
|
20108
20135
|
}
|
|
20109
20136
|
}]);
|
|
20110
20137
|
}(BaseRender);
|
|
20111
|
-
exports.DefaultCanvasLineRender = __decorate$
|
|
20138
|
+
exports.DefaultCanvasLineRender = __decorate$1w([injectable()], exports.DefaultCanvasLineRender);
|
|
20112
20139
|
|
|
20113
20140
|
function drawAreaSegments(path, segPath, percent, params) {
|
|
20114
20141
|
var _a;
|
|
@@ -20234,17 +20261,17 @@
|
|
|
20234
20261
|
var defaultAreaTextureRenderContribution = new DefaultAreaTextureRenderContribution();
|
|
20235
20262
|
var defaultAreaBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
20236
20263
|
|
|
20237
|
-
var __decorate$
|
|
20264
|
+
var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20238
20265
|
var d,
|
|
20239
20266
|
c = arguments.length,
|
|
20240
20267
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20241
20268
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
20242
20269
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20243
20270
|
},
|
|
20244
|
-
__metadata$
|
|
20271
|
+
__metadata$19 = undefined && undefined.__metadata || function (k, v) {
|
|
20245
20272
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
20246
20273
|
},
|
|
20247
|
-
__param$
|
|
20274
|
+
__param$M = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
20248
20275
|
return function (target, key) {
|
|
20249
20276
|
decorator(target, key, paramIndex);
|
|
20250
20277
|
};
|
|
@@ -20519,22 +20546,22 @@
|
|
|
20519
20546
|
}
|
|
20520
20547
|
}]);
|
|
20521
20548
|
}(BaseRender);
|
|
20522
|
-
exports.DefaultCanvasAreaRender = __decorate$
|
|
20549
|
+
exports.DefaultCanvasAreaRender = __decorate$1v([injectable(), __param$M(0, inject(ContributionProvider)), __param$M(0, named(AreaRenderContribution)), __metadata$19("design:paramtypes", [Object])], exports.DefaultCanvasAreaRender);
|
|
20523
20550
|
|
|
20524
20551
|
var defaultPathTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
20525
20552
|
var defaultPathBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
20526
20553
|
|
|
20527
|
-
var __decorate$
|
|
20554
|
+
var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20528
20555
|
var d,
|
|
20529
20556
|
c = arguments.length,
|
|
20530
20557
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20531
20558
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
20532
20559
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20533
20560
|
},
|
|
20534
|
-
__metadata$
|
|
20561
|
+
__metadata$18 = undefined && undefined.__metadata || function (k, v) {
|
|
20535
20562
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
20536
20563
|
},
|
|
20537
|
-
__param$
|
|
20564
|
+
__param$L = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
20538
20565
|
return function (target, key) {
|
|
20539
20566
|
decorator(target, key, paramIndex);
|
|
20540
20567
|
};
|
|
@@ -20578,19 +20605,19 @@
|
|
|
20578
20605
|
}
|
|
20579
20606
|
}]);
|
|
20580
20607
|
}(BaseRender);
|
|
20581
|
-
exports.DefaultCanvasPathRender = __decorate$
|
|
20608
|
+
exports.DefaultCanvasPathRender = __decorate$1u([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(PathRenderContribution)), __metadata$18("design:paramtypes", [Object])], exports.DefaultCanvasPathRender);
|
|
20582
20609
|
|
|
20583
|
-
var __decorate$
|
|
20610
|
+
var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20584
20611
|
var d,
|
|
20585
20612
|
c = arguments.length,
|
|
20586
20613
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20587
20614
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
20588
20615
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20589
20616
|
},
|
|
20590
|
-
__metadata$
|
|
20617
|
+
__metadata$17 = undefined && undefined.__metadata || function (k, v) {
|
|
20591
20618
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
20592
20619
|
},
|
|
20593
|
-
__param$
|
|
20620
|
+
__param$K = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
20594
20621
|
return function (target, key) {
|
|
20595
20622
|
decorator(target, key, paramIndex);
|
|
20596
20623
|
};
|
|
@@ -20660,19 +20687,19 @@
|
|
|
20660
20687
|
}
|
|
20661
20688
|
}]);
|
|
20662
20689
|
}(BaseRender);
|
|
20663
|
-
exports.DefaultCanvasRectRender = __decorate$
|
|
20690
|
+
exports.DefaultCanvasRectRender = __decorate$1t([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(RectRenderContribution)), __metadata$17("design:paramtypes", [Object])], exports.DefaultCanvasRectRender);
|
|
20664
20691
|
|
|
20665
|
-
var __decorate$
|
|
20692
|
+
var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20666
20693
|
var d,
|
|
20667
20694
|
c = arguments.length,
|
|
20668
20695
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20669
20696
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
20670
20697
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20671
20698
|
},
|
|
20672
|
-
__metadata$
|
|
20699
|
+
__metadata$16 = undefined && undefined.__metadata || function (k, v) {
|
|
20673
20700
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
20674
20701
|
},
|
|
20675
|
-
__param$
|
|
20702
|
+
__param$J = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
20676
20703
|
return function (target, key) {
|
|
20677
20704
|
decorator(target, key, paramIndex);
|
|
20678
20705
|
};
|
|
@@ -20741,7 +20768,7 @@
|
|
|
20741
20768
|
}
|
|
20742
20769
|
}]);
|
|
20743
20770
|
}(BaseRender);
|
|
20744
|
-
exports.DefaultCanvasSymbolRender = __decorate$
|
|
20771
|
+
exports.DefaultCanvasSymbolRender = __decorate$1s([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(SymbolRenderContribution)), __metadata$16("design:paramtypes", [Object])], exports.DefaultCanvasSymbolRender);
|
|
20745
20772
|
|
|
20746
20773
|
var DefaultBoundsAllocate = /*#__PURE__*/function () {
|
|
20747
20774
|
function DefaultBoundsAllocate() {
|
|
@@ -20843,17 +20870,17 @@
|
|
|
20843
20870
|
}(DefaultBaseBackgroundRenderContribution);
|
|
20844
20871
|
var defaultTextBackgroundRenderContribution = new DefaultTextBackgroundRenderContribution();
|
|
20845
20872
|
|
|
20846
|
-
var __decorate$
|
|
20873
|
+
var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20847
20874
|
var d,
|
|
20848
20875
|
c = arguments.length,
|
|
20849
20876
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20850
20877
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
20851
20878
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20852
20879
|
},
|
|
20853
|
-
__metadata$
|
|
20880
|
+
__metadata$15 = undefined && undefined.__metadata || function (k, v) {
|
|
20854
20881
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
20855
20882
|
},
|
|
20856
|
-
__param$
|
|
20883
|
+
__param$I = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
20857
20884
|
return function (target, key) {
|
|
20858
20885
|
decorator(target, key, paramIndex);
|
|
20859
20886
|
};
|
|
@@ -21076,9 +21103,9 @@
|
|
|
21076
21103
|
}
|
|
21077
21104
|
}]);
|
|
21078
21105
|
}(BaseRender);
|
|
21079
|
-
exports.DefaultCanvasTextRender = __decorate$
|
|
21106
|
+
exports.DefaultCanvasTextRender = __decorate$1r([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(TextRenderContribution)), __metadata$15("design:paramtypes", [Object])], exports.DefaultCanvasTextRender);
|
|
21080
21107
|
|
|
21081
|
-
var __decorate$
|
|
21108
|
+
var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21082
21109
|
var d,
|
|
21083
21110
|
c = arguments.length,
|
|
21084
21111
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21088,7 +21115,7 @@
|
|
|
21088
21115
|
exports.AbstractGraphicRender = /*#__PURE__*/_createClass(function AbstractGraphicRender() {
|
|
21089
21116
|
_classCallCheck(this, AbstractGraphicRender);
|
|
21090
21117
|
});
|
|
21091
|
-
exports.AbstractGraphicRender = __decorate$
|
|
21118
|
+
exports.AbstractGraphicRender = __decorate$1q([injectable()], exports.AbstractGraphicRender);
|
|
21092
21119
|
|
|
21093
21120
|
function drawPolygon(path, points, x, y) {
|
|
21094
21121
|
path.moveTo(points[0].x + x, points[0].y + y);
|
|
@@ -21144,17 +21171,17 @@
|
|
|
21144
21171
|
var defaultPolygonTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
21145
21172
|
var defaultPolygonBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
21146
21173
|
|
|
21147
|
-
var __decorate$
|
|
21174
|
+
var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21148
21175
|
var d,
|
|
21149
21176
|
c = arguments.length,
|
|
21150
21177
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
21151
21178
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
21152
21179
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21153
21180
|
},
|
|
21154
|
-
__metadata$
|
|
21181
|
+
__metadata$14 = undefined && undefined.__metadata || function (k, v) {
|
|
21155
21182
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21156
21183
|
},
|
|
21157
|
-
__param$
|
|
21184
|
+
__param$H = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
21158
21185
|
return function (target, key) {
|
|
21159
21186
|
decorator(target, key, paramIndex);
|
|
21160
21187
|
};
|
|
@@ -21200,19 +21227,19 @@
|
|
|
21200
21227
|
}
|
|
21201
21228
|
}]);
|
|
21202
21229
|
}(BaseRender);
|
|
21203
|
-
exports.DefaultCanvasPolygonRender = __decorate$
|
|
21230
|
+
exports.DefaultCanvasPolygonRender = __decorate$1p([injectable(), __param$H(0, inject(ContributionProvider)), __param$H(0, named(PolygonRenderContribution)), __metadata$14("design:paramtypes", [Object])], exports.DefaultCanvasPolygonRender);
|
|
21204
21231
|
|
|
21205
|
-
var __decorate$
|
|
21232
|
+
var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21206
21233
|
var d,
|
|
21207
21234
|
c = arguments.length,
|
|
21208
21235
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
21209
21236
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
21210
21237
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21211
21238
|
},
|
|
21212
|
-
__metadata$
|
|
21239
|
+
__metadata$13 = undefined && undefined.__metadata || function (k, v) {
|
|
21213
21240
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21214
21241
|
},
|
|
21215
|
-
__param$
|
|
21242
|
+
__param$G = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
21216
21243
|
return function (target, key) {
|
|
21217
21244
|
decorator(target, key, paramIndex);
|
|
21218
21245
|
};
|
|
@@ -21280,7 +21307,7 @@
|
|
|
21280
21307
|
}
|
|
21281
21308
|
}]);
|
|
21282
21309
|
}(BaseRender);
|
|
21283
|
-
exports.DefaultCanvasImageRender = __decorate$
|
|
21310
|
+
exports.DefaultCanvasImageRender = __decorate$1o([injectable(), __param$G(0, inject(ContributionProvider)), __param$G(0, named(ImageRenderContribution)), __metadata$13("design:paramtypes", [Object])], exports.DefaultCanvasImageRender);
|
|
21284
21311
|
|
|
21285
21312
|
var IncrementalDrawContribution = Symbol["for"]("IncrementalDrawContribution");
|
|
21286
21313
|
var ArcRender = Symbol["for"]("ArcRender");
|
|
@@ -21303,14 +21330,14 @@
|
|
|
21303
21330
|
var RenderSelector = Symbol["for"]("RenderSelector");
|
|
21304
21331
|
var DrawContribution = Symbol["for"]("DrawContribution");
|
|
21305
21332
|
|
|
21306
|
-
var __decorate$
|
|
21333
|
+
var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21307
21334
|
var d,
|
|
21308
21335
|
c = arguments.length,
|
|
21309
21336
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
21310
21337
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
21311
21338
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21312
21339
|
},
|
|
21313
|
-
__metadata
|
|
21340
|
+
__metadata$12 = undefined && undefined.__metadata || function (k, v) {
|
|
21314
21341
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21315
21342
|
};
|
|
21316
21343
|
var DrawItemInterceptor = Symbol["for"]("DrawItemInterceptor");
|
|
@@ -21385,7 +21412,7 @@
|
|
|
21385
21412
|
}
|
|
21386
21413
|
}]);
|
|
21387
21414
|
}();
|
|
21388
|
-
exports.CommonDrawItemInterceptorContribution = __decorate$
|
|
21415
|
+
exports.CommonDrawItemInterceptorContribution = __decorate$1n([injectable(), __metadata$12("design:paramtypes", [])], exports.CommonDrawItemInterceptorContribution);
|
|
21389
21416
|
var InteractiveDrawItemInterceptorContribution = /*#__PURE__*/function () {
|
|
21390
21417
|
function InteractiveDrawItemInterceptorContribution() {
|
|
21391
21418
|
_classCallCheck(this, InteractiveDrawItemInterceptorContribution);
|
|
@@ -21540,17 +21567,17 @@
|
|
|
21540
21567
|
}]);
|
|
21541
21568
|
}();
|
|
21542
21569
|
|
|
21543
|
-
var __decorate$
|
|
21570
|
+
var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21544
21571
|
var d,
|
|
21545
21572
|
c = arguments.length,
|
|
21546
21573
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
21547
21574
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
21548
21575
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21549
21576
|
},
|
|
21550
|
-
__metadata$
|
|
21577
|
+
__metadata$11 = undefined && undefined.__metadata || function (k, v) {
|
|
21551
21578
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21552
21579
|
},
|
|
21553
|
-
__param$
|
|
21580
|
+
__param$F = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
21554
21581
|
return function (target, key) {
|
|
21555
21582
|
decorator(target, key, paramIndex);
|
|
21556
21583
|
};
|
|
@@ -21606,7 +21633,7 @@
|
|
|
21606
21633
|
}
|
|
21607
21634
|
}]);
|
|
21608
21635
|
}();
|
|
21609
|
-
exports.DefaultRenderService = __decorate$
|
|
21636
|
+
exports.DefaultRenderService = __decorate$1m([injectable(), __param$F(0, inject(DrawContribution)), __metadata$11("design:paramtypes", [Object])], exports.DefaultRenderService);
|
|
21610
21637
|
|
|
21611
21638
|
var renderModule$1 = new ContainerModule(function (bind) {
|
|
21612
21639
|
bind(RenderService).to(exports.DefaultRenderService);
|
|
@@ -21617,7 +21644,7 @@
|
|
|
21617
21644
|
var BoundsPicker = Symbol["for"]("BoundsPicker");
|
|
21618
21645
|
var GlobalPickerService = Symbol["for"]("GlobalPickerService");
|
|
21619
21646
|
|
|
21620
|
-
var __decorate$
|
|
21647
|
+
var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21621
21648
|
var d,
|
|
21622
21649
|
c = arguments.length,
|
|
21623
21650
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21657,7 +21684,7 @@
|
|
|
21657
21684
|
}
|
|
21658
21685
|
}]);
|
|
21659
21686
|
}();
|
|
21660
|
-
exports.ShadowRootPickItemInterceptorContribution = __decorate$
|
|
21687
|
+
exports.ShadowRootPickItemInterceptorContribution = __decorate$1l([injectable()], exports.ShadowRootPickItemInterceptorContribution);
|
|
21661
21688
|
exports.InteractivePickItemInterceptorContribution = /*#__PURE__*/function () {
|
|
21662
21689
|
function InteractivePickItemInterceptorContribution() {
|
|
21663
21690
|
_classCallCheck(this, InteractivePickItemInterceptorContribution);
|
|
@@ -21680,7 +21707,7 @@
|
|
|
21680
21707
|
}
|
|
21681
21708
|
}]);
|
|
21682
21709
|
}();
|
|
21683
|
-
exports.InteractivePickItemInterceptorContribution = __decorate$
|
|
21710
|
+
exports.InteractivePickItemInterceptorContribution = __decorate$1l([injectable()], exports.InteractivePickItemInterceptorContribution);
|
|
21684
21711
|
exports.Canvas3DPickItemInterceptor = /*#__PURE__*/function () {
|
|
21685
21712
|
function Canvas3DPickItemInterceptor() {
|
|
21686
21713
|
_classCallCheck(this, Canvas3DPickItemInterceptor);
|
|
@@ -21756,7 +21783,7 @@
|
|
|
21756
21783
|
}
|
|
21757
21784
|
}]);
|
|
21758
21785
|
}();
|
|
21759
|
-
exports.Canvas3DPickItemInterceptor = __decorate$
|
|
21786
|
+
exports.Canvas3DPickItemInterceptor = __decorate$1l([injectable()], exports.Canvas3DPickItemInterceptor);
|
|
21760
21787
|
|
|
21761
21788
|
var pickModule = new ContainerModule(function (bind, unbind, isBound) {
|
|
21762
21789
|
isBound(PickerService) || (bind(GlobalPickerService).toSelf(), bind(PickerService).toService(GlobalPickerService)), bind(exports.Canvas3DPickItemInterceptor).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(exports.Canvas3DPickItemInterceptor), bind(exports.ShadowRootPickItemInterceptorContribution).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(exports.ShadowRootPickItemInterceptorContribution), bind(exports.InteractivePickItemInterceptorContribution).toSelf().inSingletonScope(), bind(PickItemInterceptor).toService(exports.InteractivePickItemInterceptorContribution), bindContributionProvider(bind, PickItemInterceptor);
|
|
@@ -21769,17 +21796,17 @@
|
|
|
21769
21796
|
var AutoEnablePlugins = Symbol["for"]("AutoEnablePlugins");
|
|
21770
21797
|
var PluginService = Symbol["for"]("PluginService");
|
|
21771
21798
|
|
|
21772
|
-
var __decorate$
|
|
21799
|
+
var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21773
21800
|
var d,
|
|
21774
21801
|
c = arguments.length,
|
|
21775
21802
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
21776
21803
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
21777
21804
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21778
21805
|
},
|
|
21779
|
-
__metadata$
|
|
21806
|
+
__metadata$10 = undefined && undefined.__metadata || function (k, v) {
|
|
21780
21807
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21781
21808
|
},
|
|
21782
|
-
__param$
|
|
21809
|
+
__param$E = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
21783
21810
|
return function (target, key) {
|
|
21784
21811
|
decorator(target, key, paramIndex);
|
|
21785
21812
|
};
|
|
@@ -21831,7 +21858,7 @@
|
|
|
21831
21858
|
}
|
|
21832
21859
|
}]);
|
|
21833
21860
|
}();
|
|
21834
|
-
DefaultPluginService = __decorate$
|
|
21861
|
+
DefaultPluginService = __decorate$1k([injectable(), __param$E(0, inject(ContributionProvider)), __param$E(0, named(AutoEnablePlugins)), __metadata$10("design:paramtypes", [Object])], DefaultPluginService);
|
|
21835
21862
|
|
|
21836
21863
|
var pluginModule = new ContainerModule(function (bind) {
|
|
21837
21864
|
bind(PluginService).to(DefaultPluginService), bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
|
|
@@ -21845,14 +21872,14 @@
|
|
|
21845
21872
|
bind(TextMeasureContribution).to(exports.DefaultTextMeasureContribution).inSingletonScope(), bindContributionProvider(bind, TextMeasureContribution);
|
|
21846
21873
|
});
|
|
21847
21874
|
|
|
21848
|
-
var __decorate$
|
|
21875
|
+
var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21849
21876
|
var d,
|
|
21850
21877
|
c = arguments.length,
|
|
21851
21878
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
21852
21879
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
21853
21880
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21854
21881
|
},
|
|
21855
|
-
__metadata
|
|
21882
|
+
__metadata$$ = undefined && undefined.__metadata || function (k, v) {
|
|
21856
21883
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21857
21884
|
};
|
|
21858
21885
|
var CanvasLayerHandlerContribution = /*#__PURE__*/function () {
|
|
@@ -21945,16 +21972,16 @@
|
|
|
21945
21972
|
}
|
|
21946
21973
|
}]);
|
|
21947
21974
|
}();
|
|
21948
|
-
CanvasLayerHandlerContribution = __decorate$
|
|
21975
|
+
CanvasLayerHandlerContribution = __decorate$1j([injectable(), __metadata$$("design:paramtypes", [])], CanvasLayerHandlerContribution);
|
|
21949
21976
|
|
|
21950
|
-
var __decorate$
|
|
21977
|
+
var __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21951
21978
|
var d,
|
|
21952
21979
|
c = arguments.length,
|
|
21953
21980
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
21954
21981
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
21955
21982
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21956
21983
|
},
|
|
21957
|
-
__metadata$
|
|
21984
|
+
__metadata$_ = undefined && undefined.__metadata || function (k, v) {
|
|
21958
21985
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21959
21986
|
};
|
|
21960
21987
|
var EmptyLayerHandlerContribution = /*#__PURE__*/function () {
|
|
@@ -22011,16 +22038,16 @@
|
|
|
22011
22038
|
value: function release() {}
|
|
22012
22039
|
}]);
|
|
22013
22040
|
}();
|
|
22014
|
-
EmptyLayerHandlerContribution = __decorate$
|
|
22041
|
+
EmptyLayerHandlerContribution = __decorate$1i([injectable(), __metadata$_("design:paramtypes", [])], EmptyLayerHandlerContribution);
|
|
22015
22042
|
|
|
22016
|
-
var __decorate$
|
|
22043
|
+
var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
22017
22044
|
var d,
|
|
22018
22045
|
c = arguments.length,
|
|
22019
22046
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
22020
22047
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
22021
22048
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22022
22049
|
},
|
|
22023
|
-
__metadata$
|
|
22050
|
+
__metadata$Z = undefined && undefined.__metadata || function (k, v) {
|
|
22024
22051
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
22025
22052
|
};
|
|
22026
22053
|
var OffscreenLayerHandlerContribution = /*#__PURE__*/function () {
|
|
@@ -22103,7 +22130,7 @@
|
|
|
22103
22130
|
value: function merge(layerHandlers) {}
|
|
22104
22131
|
}]);
|
|
22105
22132
|
}();
|
|
22106
|
-
OffscreenLayerHandlerContribution = __decorate$
|
|
22133
|
+
OffscreenLayerHandlerContribution = __decorate$1h([injectable(), __metadata$Z("design:paramtypes", [])], OffscreenLayerHandlerContribution);
|
|
22107
22134
|
|
|
22108
22135
|
var layerHandlerModules = new ContainerModule(function (bind) {
|
|
22109
22136
|
bind(CanvasLayerHandlerContribution).toSelf(), bind(OffscreenLayerHandlerContribution).toSelf(), bind(EmptyLayerHandlerContribution).toSelf(), bind(StaticLayerHandlerContribution).toService(CanvasLayerHandlerContribution), bind(DynamicLayerHandlerContribution).toService(OffscreenLayerHandlerContribution), bind(VirtualLayerHandlerContribution).toService(EmptyLayerHandlerContribution);
|
|
@@ -22113,7 +22140,7 @@
|
|
|
22113
22140
|
container.load(envModules), container.load(textMeasureModules), container.load(layerHandlerModules);
|
|
22114
22141
|
}
|
|
22115
22142
|
|
|
22116
|
-
var __awaiter$
|
|
22143
|
+
var __awaiter$3 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
22117
22144
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
22118
22145
|
function fulfilled(value) {
|
|
22119
22146
|
try {
|
|
@@ -22178,7 +22205,7 @@
|
|
|
22178
22205
|
}
|
|
22179
22206
|
function foreachAsync(graphic, defaultZIndex, cb) {
|
|
22180
22207
|
var reverse = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !1;
|
|
22181
|
-
return __awaiter$
|
|
22208
|
+
return __awaiter$3(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
22182
22209
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
22183
22210
|
while (1) switch (_context.prev = _context.next) {
|
|
22184
22211
|
case 0:
|
|
@@ -22230,17 +22257,17 @@
|
|
|
22230
22257
|
return result;
|
|
22231
22258
|
}
|
|
22232
22259
|
|
|
22233
|
-
var __decorate$
|
|
22260
|
+
var __decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
22234
22261
|
var d,
|
|
22235
22262
|
c = arguments.length,
|
|
22236
22263
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
22237
22264
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
22238
22265
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22239
22266
|
},
|
|
22240
|
-
__metadata$
|
|
22267
|
+
__metadata$Y = undefined && undefined.__metadata || function (k, v) {
|
|
22241
22268
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
22242
22269
|
},
|
|
22243
|
-
__param$
|
|
22270
|
+
__param$D = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
22244
22271
|
return function (target, key) {
|
|
22245
22272
|
decorator(target, key, paramIndex);
|
|
22246
22273
|
};
|
|
@@ -22453,19 +22480,19 @@
|
|
|
22453
22480
|
value: function afterDraw(renderService, drawParams) {}
|
|
22454
22481
|
}]);
|
|
22455
22482
|
}();
|
|
22456
|
-
DefaultDrawContribution = __decorate$
|
|
22483
|
+
DefaultDrawContribution = __decorate$1g([injectable(), __param$D(0, multiInject(GraphicRender)), __param$D(1, inject(ContributionProvider)), __param$D(1, named(DrawItemInterceptor)), __metadata$Y("design:paramtypes", [Array, Object])], DefaultDrawContribution);
|
|
22457
22484
|
|
|
22458
|
-
var __decorate$
|
|
22485
|
+
var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
22459
22486
|
var d,
|
|
22460
22487
|
c = arguments.length,
|
|
22461
22488
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
22462
22489
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
22463
22490
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22464
22491
|
},
|
|
22465
|
-
__metadata$
|
|
22492
|
+
__metadata$X = undefined && undefined.__metadata || function (k, v) {
|
|
22466
22493
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
22467
22494
|
},
|
|
22468
|
-
__param$
|
|
22495
|
+
__param$C = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
22469
22496
|
return function (target, key) {
|
|
22470
22497
|
decorator(target, key, paramIndex);
|
|
22471
22498
|
};
|
|
@@ -22566,9 +22593,9 @@
|
|
|
22566
22593
|
}
|
|
22567
22594
|
}]);
|
|
22568
22595
|
}();
|
|
22569
|
-
DefaultCanvasGroupRender = __decorate$
|
|
22596
|
+
DefaultCanvasGroupRender = __decorate$1f([injectable(), __param$C(0, inject(ContributionProvider)), __param$C(0, named(GroupRenderContribution)), __metadata$X("design:paramtypes", [Object])], DefaultCanvasGroupRender);
|
|
22570
22597
|
|
|
22571
|
-
var __decorate$
|
|
22598
|
+
var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
22572
22599
|
var d,
|
|
22573
22600
|
c = arguments.length,
|
|
22574
22601
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -22630,9 +22657,9 @@
|
|
|
22630
22657
|
}
|
|
22631
22658
|
}]);
|
|
22632
22659
|
}(exports.DefaultCanvasLineRender);
|
|
22633
|
-
DefaultIncrementalCanvasLineRender = __decorate$
|
|
22660
|
+
DefaultIncrementalCanvasLineRender = __decorate$1e([injectable()], DefaultIncrementalCanvasLineRender);
|
|
22634
22661
|
|
|
22635
|
-
var __decorate$
|
|
22662
|
+
var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
22636
22663
|
var d,
|
|
22637
22664
|
c = arguments.length,
|
|
22638
22665
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -22685,25 +22712,25 @@
|
|
|
22685
22712
|
}
|
|
22686
22713
|
}]);
|
|
22687
22714
|
}(exports.DefaultCanvasAreaRender);
|
|
22688
|
-
DefaultIncrementalCanvasAreaRender = __decorate$
|
|
22715
|
+
DefaultIncrementalCanvasAreaRender = __decorate$1d([injectable()], DefaultIncrementalCanvasAreaRender);
|
|
22689
22716
|
|
|
22690
22717
|
var STATUS,
|
|
22691
|
-
__decorate$
|
|
22718
|
+
__decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
22692
22719
|
var d,
|
|
22693
22720
|
c = arguments.length,
|
|
22694
22721
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
22695
22722
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
22696
22723
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22697
22724
|
},
|
|
22698
|
-
__metadata$
|
|
22725
|
+
__metadata$W = undefined && undefined.__metadata || function (k, v) {
|
|
22699
22726
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
22700
22727
|
},
|
|
22701
|
-
__param$
|
|
22728
|
+
__param$B = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
22702
22729
|
return function (target, key) {
|
|
22703
22730
|
decorator(target, key, paramIndex);
|
|
22704
22731
|
};
|
|
22705
22732
|
},
|
|
22706
|
-
__awaiter$
|
|
22733
|
+
__awaiter$2 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
22707
22734
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
22708
22735
|
function fulfilled(value) {
|
|
22709
22736
|
try {
|
|
@@ -22744,7 +22771,7 @@
|
|
|
22744
22771
|
return _createClass(DefaultIncrementalDrawContribution, [{
|
|
22745
22772
|
key: "draw",
|
|
22746
22773
|
value: function draw(renderService, drawContext) {
|
|
22747
|
-
return __awaiter$
|
|
22774
|
+
return __awaiter$2(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
22748
22775
|
var _this2 = this;
|
|
22749
22776
|
var skipDraw, context, viewBox;
|
|
22750
22777
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -22787,7 +22814,7 @@
|
|
|
22787
22814
|
}, {
|
|
22788
22815
|
key: "_increaseRender",
|
|
22789
22816
|
value: function _increaseRender(group, drawContext) {
|
|
22790
|
-
return __awaiter$
|
|
22817
|
+
return __awaiter$2(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
22791
22818
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
22792
22819
|
while (1) switch (_context2.prev = _context2.next) {
|
|
22793
22820
|
case 0:
|
|
@@ -22804,7 +22831,7 @@
|
|
|
22804
22831
|
}, {
|
|
22805
22832
|
key: "_renderIncrementalGroup",
|
|
22806
22833
|
value: function _renderIncrementalGroup(group, drawContext) {
|
|
22807
|
-
return __awaiter$
|
|
22834
|
+
return __awaiter$2(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
22808
22835
|
var _this3 = this;
|
|
22809
22836
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
22810
22837
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -22814,7 +22841,7 @@
|
|
|
22814
22841
|
return new Promise(function (resolve) {
|
|
22815
22842
|
_this3.renderItem(group, drawContext, {
|
|
22816
22843
|
drawingCb: function drawingCb() {
|
|
22817
|
-
return __awaiter$
|
|
22844
|
+
return __awaiter$2(_this3, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
22818
22845
|
var _this4 = this;
|
|
22819
22846
|
var graphic;
|
|
22820
22847
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -22887,7 +22914,7 @@
|
|
|
22887
22914
|
}, {
|
|
22888
22915
|
key: "waitToNextFrame",
|
|
22889
22916
|
value: function waitToNextFrame() {
|
|
22890
|
-
return __awaiter$
|
|
22917
|
+
return __awaiter$2(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
22891
22918
|
var _this5 = this;
|
|
22892
22919
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
22893
22920
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -22907,7 +22934,7 @@
|
|
|
22907
22934
|
}, {
|
|
22908
22935
|
key: "checkForDraw",
|
|
22909
22936
|
value: function checkForDraw(drawContext) {
|
|
22910
|
-
return __awaiter$
|
|
22937
|
+
return __awaiter$2(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
22911
22938
|
var skip;
|
|
22912
22939
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
22913
22940
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -22935,7 +22962,7 @@
|
|
|
22935
22962
|
}, {
|
|
22936
22963
|
key: "forceStop",
|
|
22937
22964
|
value: function forceStop() {
|
|
22938
|
-
return __awaiter$
|
|
22965
|
+
return __awaiter$2(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
22939
22966
|
var _this6 = this;
|
|
22940
22967
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
22941
22968
|
while (1) switch (_context7.prev = _context7.next) {
|
|
@@ -22969,7 +22996,7 @@
|
|
|
22969
22996
|
}, {
|
|
22970
22997
|
key: "renderGroup",
|
|
22971
22998
|
value: function renderGroup(group, drawContext) {
|
|
22972
|
-
return __awaiter$
|
|
22999
|
+
return __awaiter$2(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
|
|
22973
23000
|
var _this7 = this;
|
|
22974
23001
|
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
22975
23002
|
while (1) switch (_context10.prev = _context10.next) {
|
|
@@ -22993,14 +23020,14 @@
|
|
|
22993
23020
|
return new Promise(function (resolve) {
|
|
22994
23021
|
_this7.renderItem(group, drawContext, {
|
|
22995
23022
|
drawingCb: function drawingCb() {
|
|
22996
|
-
return __awaiter$
|
|
23023
|
+
return __awaiter$2(_this7, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
|
|
22997
23024
|
var _this8 = this;
|
|
22998
23025
|
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
22999
23026
|
while (1) switch (_context9.prev = _context9.next) {
|
|
23000
23027
|
case 0:
|
|
23001
23028
|
_context9.next = 2;
|
|
23002
23029
|
return foreachAsync(group, DefaultAttribute.zIndex, function (item) {
|
|
23003
|
-
return __awaiter$
|
|
23030
|
+
return __awaiter$2(_this8, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
|
|
23004
23031
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
23005
23032
|
while (1) switch (_context8.prev = _context8.next) {
|
|
23006
23033
|
case 0:
|
|
@@ -23047,7 +23074,7 @@
|
|
|
23047
23074
|
}
|
|
23048
23075
|
}]);
|
|
23049
23076
|
}(DefaultDrawContribution);
|
|
23050
|
-
DefaultIncrementalDrawContribution = __decorate$
|
|
23077
|
+
DefaultIncrementalDrawContribution = __decorate$1c([injectable(), __param$B(0, multiInject(GraphicRender)), __param$B(1, inject(DefaultIncrementalCanvasLineRender)), __param$B(2, inject(DefaultIncrementalCanvasAreaRender)), __param$B(3, inject(ContributionProvider)), __param$B(3, named(DrawItemInterceptor)), __metadata$W("design:paramtypes", [Array, Object, Object, Object])], DefaultIncrementalDrawContribution);
|
|
23051
23078
|
|
|
23052
23079
|
var renderModule = new ContainerModule(function (bind) {
|
|
23053
23080
|
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(exports.DefaultBaseInteractiveRenderContribution).toSelf().inSingletonScope(), bindContributionProvider(bind, InteractiveSubRenderContribution), bindContributionProvider(bind, GraphicRender), bind(exports.CommonDrawItemInterceptorContribution).toSelf().inSingletonScope(), bind(DrawItemInterceptor).toService(exports.CommonDrawItemInterceptorContribution), bindContributionProvider(bind, DrawItemInterceptor);
|
|
@@ -24579,6 +24606,16 @@
|
|
|
24579
24606
|
var point = this.global.mapToCanvasPoint(e, this.window.getContext().canvas.nativeCanvas);
|
|
24580
24607
|
return this.stage.window.pointTransform(point.x, point.y);
|
|
24581
24608
|
}
|
|
24609
|
+
}, {
|
|
24610
|
+
key: "pauseTriggerEvent",
|
|
24611
|
+
value: function pauseTriggerEvent() {
|
|
24612
|
+
this._eventSystem && this._eventSystem.pauseTriggerEvent();
|
|
24613
|
+
}
|
|
24614
|
+
}, {
|
|
24615
|
+
key: "resumeTriggerEvent",
|
|
24616
|
+
value: function resumeTriggerEvent() {
|
|
24617
|
+
this._eventSystem && this._eventSystem.resumeTriggerEvent();
|
|
24618
|
+
}
|
|
24582
24619
|
}]);
|
|
24583
24620
|
}(Group);
|
|
24584
24621
|
|
|
@@ -24588,14 +24625,14 @@
|
|
|
24588
24625
|
|
|
24589
24626
|
var strCommandMap = ["arc", "arcTo", "bezierCurveTo", "closePath", "ellipse", "lineTo", "moveTo", "quadraticCurveTo", "rect"];
|
|
24590
24627
|
|
|
24591
|
-
var __decorate$
|
|
24628
|
+
var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24592
24629
|
var d,
|
|
24593
24630
|
c = arguments.length,
|
|
24594
24631
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
24595
24632
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
24596
24633
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24597
24634
|
},
|
|
24598
|
-
__metadata$
|
|
24635
|
+
__metadata$V = undefined && undefined.__metadata || function (k, v) {
|
|
24599
24636
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
24600
24637
|
};
|
|
24601
24638
|
var initMatrix = new Matrix(1, 0, 0, 1, 0, 0),
|
|
@@ -24941,16 +24978,16 @@
|
|
|
24941
24978
|
}
|
|
24942
24979
|
}]);
|
|
24943
24980
|
}();
|
|
24944
|
-
exports.EmptyContext2d = __decorate$
|
|
24981
|
+
exports.EmptyContext2d = __decorate$1b([injectable(), __metadata$V("design:paramtypes", [Object, Number])], exports.EmptyContext2d);
|
|
24945
24982
|
|
|
24946
|
-
var __decorate$
|
|
24983
|
+
var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24947
24984
|
var d,
|
|
24948
24985
|
c = arguments.length,
|
|
24949
24986
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
24950
24987
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
24951
24988
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24952
24989
|
},
|
|
24953
|
-
__metadata$
|
|
24990
|
+
__metadata$U = undefined && undefined.__metadata || function (k, v) {
|
|
24954
24991
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
24955
24992
|
};
|
|
24956
24993
|
var DefaultConfig = {
|
|
@@ -25096,9 +25133,9 @@
|
|
|
25096
25133
|
}
|
|
25097
25134
|
}]);
|
|
25098
25135
|
}();
|
|
25099
|
-
exports.BaseCanvas.env = "browser", exports.BaseCanvas = __decorate$
|
|
25136
|
+
exports.BaseCanvas.env = "browser", exports.BaseCanvas = __decorate$1a([injectable(), __metadata$U("design:paramtypes", [Object])], exports.BaseCanvas);
|
|
25100
25137
|
|
|
25101
|
-
var __decorate$
|
|
25138
|
+
var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25102
25139
|
var d,
|
|
25103
25140
|
c = arguments.length,
|
|
25104
25141
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25226,16 +25263,16 @@
|
|
|
25226
25263
|
}
|
|
25227
25264
|
}]);
|
|
25228
25265
|
}();
|
|
25229
|
-
exports.BaseEnvContribution = __decorate$
|
|
25266
|
+
exports.BaseEnvContribution = __decorate$19([injectable()], exports.BaseEnvContribution);
|
|
25230
25267
|
|
|
25231
|
-
var __decorate$
|
|
25268
|
+
var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25232
25269
|
var d,
|
|
25233
25270
|
c = arguments.length,
|
|
25234
25271
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25235
25272
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25236
25273
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25237
25274
|
},
|
|
25238
|
-
__metadata$
|
|
25275
|
+
__metadata$T = undefined && undefined.__metadata || function (k, v) {
|
|
25239
25276
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25240
25277
|
};
|
|
25241
25278
|
exports.BaseWindowHandlerContribution = /*#__PURE__*/function () {
|
|
@@ -25296,19 +25333,19 @@
|
|
|
25296
25333
|
}
|
|
25297
25334
|
}]);
|
|
25298
25335
|
}();
|
|
25299
|
-
exports.BaseWindowHandlerContribution = __decorate$
|
|
25336
|
+
exports.BaseWindowHandlerContribution = __decorate$18([injectable(), __metadata$T("design:paramtypes", [])], exports.BaseWindowHandlerContribution);
|
|
25300
25337
|
|
|
25301
|
-
var __decorate$
|
|
25338
|
+
var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25302
25339
|
var d,
|
|
25303
25340
|
c = arguments.length,
|
|
25304
25341
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25305
25342
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25306
25343
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25307
25344
|
},
|
|
25308
|
-
__metadata$
|
|
25345
|
+
__metadata$S = undefined && undefined.__metadata || function (k, v) {
|
|
25309
25346
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25310
25347
|
},
|
|
25311
|
-
__param$
|
|
25348
|
+
__param$A = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
25312
25349
|
return function (target, key) {
|
|
25313
25350
|
decorator(target, key, paramIndex);
|
|
25314
25351
|
};
|
|
@@ -25431,16 +25468,16 @@
|
|
|
25431
25468
|
}
|
|
25432
25469
|
}]);
|
|
25433
25470
|
}();
|
|
25434
|
-
exports.DefaultPickService = __decorate$
|
|
25471
|
+
exports.DefaultPickService = __decorate$17([injectable(), __param$A(0, inject(ContributionProvider)), __param$A(0, named(PickItemInterceptor)), __metadata$S("design:paramtypes", [Object])], exports.DefaultPickService);
|
|
25435
25472
|
|
|
25436
|
-
var __decorate$
|
|
25473
|
+
var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25437
25474
|
var d,
|
|
25438
25475
|
c = arguments.length,
|
|
25439
25476
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25440
25477
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25441
25478
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25442
25479
|
},
|
|
25443
|
-
__metadata$
|
|
25480
|
+
__metadata$R = undefined && undefined.__metadata || function (k, v) {
|
|
25444
25481
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25445
25482
|
};
|
|
25446
25483
|
exports.DefaultGlobalPickerService = /*#__PURE__*/function () {
|
|
@@ -25519,7 +25556,7 @@
|
|
|
25519
25556
|
}
|
|
25520
25557
|
}]);
|
|
25521
25558
|
}();
|
|
25522
|
-
exports.DefaultGlobalPickerService = __decorate$
|
|
25559
|
+
exports.DefaultGlobalPickerService = __decorate$16([injectable(), __metadata$R("design:paramtypes", [])], exports.DefaultGlobalPickerService);
|
|
25523
25560
|
|
|
25524
25561
|
function simplifyRadialDist(points, sqTolerance) {
|
|
25525
25562
|
var deltaX,
|
|
@@ -25830,7 +25867,7 @@
|
|
|
25830
25867
|
loadPolygonModule || (loadPolygonModule = !0, bind(PolygonRender).to(exports.DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
|
|
25831
25868
|
});
|
|
25832
25869
|
|
|
25833
|
-
var __decorate$
|
|
25870
|
+
var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25834
25871
|
var d,
|
|
25835
25872
|
c = arguments.length,
|
|
25836
25873
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25866,21 +25903,21 @@
|
|
|
25866
25903
|
}
|
|
25867
25904
|
}]);
|
|
25868
25905
|
}();
|
|
25869
|
-
DefaultCanvasGlyphRender = __decorate$
|
|
25906
|
+
DefaultCanvasGlyphRender = __decorate$15([injectable()], DefaultCanvasGlyphRender);
|
|
25870
25907
|
|
|
25871
25908
|
var loadGlyphModule = !1;
|
|
25872
25909
|
var glyphModule = new ContainerModule(function (bind) {
|
|
25873
25910
|
loadGlyphModule || (loadGlyphModule = !0, bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender));
|
|
25874
25911
|
});
|
|
25875
25912
|
|
|
25876
|
-
var __decorate$
|
|
25913
|
+
var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25877
25914
|
var d,
|
|
25878
25915
|
c = arguments.length,
|
|
25879
25916
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25880
25917
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
25881
25918
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25882
25919
|
},
|
|
25883
|
-
__metadata$
|
|
25920
|
+
__metadata$Q = undefined && undefined.__metadata || function (k, v) {
|
|
25884
25921
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25885
25922
|
};
|
|
25886
25923
|
var DefaultCanvasRichTextRender = /*#__PURE__*/function (_BaseRender) {
|
|
@@ -25956,7 +25993,7 @@
|
|
|
25956
25993
|
}
|
|
25957
25994
|
}]);
|
|
25958
25995
|
}(BaseRender);
|
|
25959
|
-
DefaultCanvasRichTextRender = __decorate$
|
|
25996
|
+
DefaultCanvasRichTextRender = __decorate$14([injectable(), __metadata$Q("design:paramtypes", [])], DefaultCanvasRichTextRender);
|
|
25960
25997
|
|
|
25961
25998
|
var loadRichtextModule = !1;
|
|
25962
25999
|
var richtextModule = new ContainerModule(function (bind) {
|
|
@@ -25968,7 +26005,7 @@
|
|
|
25968
26005
|
loadImageModule || (loadImageModule = !0, bind(ImageRender).to(exports.DefaultCanvasImageRender).inSingletonScope(), bind(GraphicRender).toService(ImageRender), bind(ImageRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, ImageRenderContribution));
|
|
25969
26006
|
});
|
|
25970
26007
|
|
|
25971
|
-
var __decorate
|
|
26008
|
+
var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25972
26009
|
var d,
|
|
25973
26010
|
c = arguments.length,
|
|
25974
26011
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26112,14 +26149,14 @@
|
|
|
26112
26149
|
}
|
|
26113
26150
|
}]);
|
|
26114
26151
|
}(BaseRender);
|
|
26115
|
-
DefaultCanvasRect3dRender = __decorate
|
|
26152
|
+
DefaultCanvasRect3dRender = __decorate$13([injectable()], DefaultCanvasRect3dRender);
|
|
26116
26153
|
|
|
26117
26154
|
var loadRect3dModule = !1;
|
|
26118
26155
|
var rect3dModule = new ContainerModule(function (bind) {
|
|
26119
26156
|
loadRect3dModule || (loadRect3dModule = !0, bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender));
|
|
26120
26157
|
});
|
|
26121
26158
|
|
|
26122
|
-
var __decorate$
|
|
26159
|
+
var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26123
26160
|
var d,
|
|
26124
26161
|
c = arguments.length,
|
|
26125
26162
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26249,14 +26286,14 @@
|
|
|
26249
26286
|
}
|
|
26250
26287
|
}]);
|
|
26251
26288
|
}(BaseRender);
|
|
26252
|
-
DefaultCanvasArc3DRender = __decorate$
|
|
26289
|
+
DefaultCanvasArc3DRender = __decorate$12([injectable()], DefaultCanvasArc3DRender);
|
|
26253
26290
|
|
|
26254
26291
|
var loadArc3dModule = !1;
|
|
26255
26292
|
var arc3dModule = new ContainerModule(function (bind) {
|
|
26256
26293
|
loadArc3dModule || (loadArc3dModule = !0, bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender));
|
|
26257
26294
|
});
|
|
26258
26295
|
|
|
26259
|
-
var __decorate$
|
|
26296
|
+
var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26260
26297
|
var d,
|
|
26261
26298
|
c = arguments.length,
|
|
26262
26299
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26379,7 +26416,7 @@
|
|
|
26379
26416
|
}
|
|
26380
26417
|
}]);
|
|
26381
26418
|
}(BaseRender);
|
|
26382
|
-
DefaultCanvasPyramid3dRender = __decorate$
|
|
26419
|
+
DefaultCanvasPyramid3dRender = __decorate$11([injectable()], DefaultCanvasPyramid3dRender);
|
|
26383
26420
|
|
|
26384
26421
|
var loadPyramid3dModule = !1;
|
|
26385
26422
|
var pyramid3dModule = new ContainerModule(function (bind) {
|
|
@@ -28306,17 +28343,17 @@
|
|
|
28306
28343
|
fixedDecimalPlaceDigits: void 0
|
|
28307
28344
|
};
|
|
28308
28345
|
|
|
28309
|
-
var __decorate$
|
|
28346
|
+
var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28310
28347
|
var d,
|
|
28311
28348
|
c = arguments.length,
|
|
28312
28349
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28313
28350
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28314
28351
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28315
28352
|
},
|
|
28316
|
-
__metadata$
|
|
28353
|
+
__metadata$P = undefined && undefined.__metadata || function (k, v) {
|
|
28317
28354
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28318
28355
|
},
|
|
28319
|
-
__param$
|
|
28356
|
+
__param$z = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28320
28357
|
return function (target, key) {
|
|
28321
28358
|
decorator(target, key, paramIndex);
|
|
28322
28359
|
};
|
|
@@ -28436,9 +28473,9 @@
|
|
|
28436
28473
|
}
|
|
28437
28474
|
}]);
|
|
28438
28475
|
}();
|
|
28439
|
-
RoughCanvasArcRender = __decorate$
|
|
28476
|
+
RoughCanvasArcRender = __decorate$10([injectable(), __param$z(0, inject(exports.DefaultCanvasArcRender)), __metadata$P("design:paramtypes", [Object])], RoughCanvasArcRender);
|
|
28440
28477
|
|
|
28441
|
-
var __decorate
|
|
28478
|
+
var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28442
28479
|
var d,
|
|
28443
28480
|
c = arguments.length,
|
|
28444
28481
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28540,19 +28577,19 @@
|
|
|
28540
28577
|
}
|
|
28541
28578
|
}]);
|
|
28542
28579
|
}(exports.DefaultCanvasAreaRender);
|
|
28543
|
-
RoughCanvasAreaRender = __decorate
|
|
28580
|
+
RoughCanvasAreaRender = __decorate$$([injectable()], RoughCanvasAreaRender);
|
|
28544
28581
|
|
|
28545
|
-
var __decorate$
|
|
28582
|
+
var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28546
28583
|
var d,
|
|
28547
28584
|
c = arguments.length,
|
|
28548
28585
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28549
28586
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28550
28587
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28551
28588
|
},
|
|
28552
|
-
__metadata$
|
|
28589
|
+
__metadata$O = undefined && undefined.__metadata || function (k, v) {
|
|
28553
28590
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28554
28591
|
},
|
|
28555
|
-
__param$
|
|
28592
|
+
__param$y = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28556
28593
|
return function (target, key) {
|
|
28557
28594
|
decorator(target, key, paramIndex);
|
|
28558
28595
|
};
|
|
@@ -28600,9 +28637,9 @@
|
|
|
28600
28637
|
}
|
|
28601
28638
|
}]);
|
|
28602
28639
|
}();
|
|
28603
|
-
RoughCanvasCircleRender = __decorate$
|
|
28640
|
+
RoughCanvasCircleRender = __decorate$_([injectable(), __param$y(0, inject(exports.DefaultCanvasCircleRender)), __metadata$O("design:paramtypes", [Object])], RoughCanvasCircleRender);
|
|
28604
28641
|
|
|
28605
|
-
var __decorate$
|
|
28642
|
+
var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28606
28643
|
var d,
|
|
28607
28644
|
c = arguments.length,
|
|
28608
28645
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28705,19 +28742,19 @@
|
|
|
28705
28742
|
}
|
|
28706
28743
|
}]);
|
|
28707
28744
|
}(exports.DefaultCanvasLineRender);
|
|
28708
|
-
RoughCanvasLineRender = __decorate$
|
|
28745
|
+
RoughCanvasLineRender = __decorate$Z([injectable()], RoughCanvasLineRender);
|
|
28709
28746
|
|
|
28710
|
-
var __decorate$
|
|
28747
|
+
var __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28711
28748
|
var d,
|
|
28712
28749
|
c = arguments.length,
|
|
28713
28750
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28714
28751
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28715
28752
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28716
28753
|
},
|
|
28717
|
-
__metadata$
|
|
28754
|
+
__metadata$N = undefined && undefined.__metadata || function (k, v) {
|
|
28718
28755
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28719
28756
|
},
|
|
28720
|
-
__param$
|
|
28757
|
+
__param$x = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28721
28758
|
return function (target, key) {
|
|
28722
28759
|
decorator(target, key, paramIndex);
|
|
28723
28760
|
};
|
|
@@ -28822,19 +28859,19 @@
|
|
|
28822
28859
|
}
|
|
28823
28860
|
}]);
|
|
28824
28861
|
}();
|
|
28825
|
-
RoughCanvasPathRender = __decorate$
|
|
28862
|
+
RoughCanvasPathRender = __decorate$Y([injectable(), __param$x(0, inject(exports.DefaultCanvasPathRender)), __metadata$N("design:paramtypes", [Object])], RoughCanvasPathRender);
|
|
28826
28863
|
|
|
28827
|
-
var __decorate$
|
|
28864
|
+
var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28828
28865
|
var d,
|
|
28829
28866
|
c = arguments.length,
|
|
28830
28867
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28831
28868
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28832
28869
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28833
28870
|
},
|
|
28834
|
-
__metadata$
|
|
28871
|
+
__metadata$M = undefined && undefined.__metadata || function (k, v) {
|
|
28835
28872
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28836
28873
|
},
|
|
28837
|
-
__param$
|
|
28874
|
+
__param$w = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28838
28875
|
return function (target, key) {
|
|
28839
28876
|
decorator(target, key, paramIndex);
|
|
28840
28877
|
};
|
|
@@ -28960,19 +28997,19 @@
|
|
|
28960
28997
|
}
|
|
28961
28998
|
}]);
|
|
28962
28999
|
}();
|
|
28963
|
-
RoughCanvasRectRender = __decorate$
|
|
29000
|
+
RoughCanvasRectRender = __decorate$X([injectable(), __param$w(0, inject(exports.DefaultCanvasRectRender)), __metadata$M("design:paramtypes", [Object])], RoughCanvasRectRender);
|
|
28964
29001
|
|
|
28965
|
-
var __decorate$
|
|
29002
|
+
var __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28966
29003
|
var d,
|
|
28967
29004
|
c = arguments.length,
|
|
28968
29005
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28969
29006
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
28970
29007
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28971
29008
|
},
|
|
28972
|
-
__metadata$
|
|
29009
|
+
__metadata$L = undefined && undefined.__metadata || function (k, v) {
|
|
28973
29010
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28974
29011
|
},
|
|
28975
|
-
__param$
|
|
29012
|
+
__param$v = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28976
29013
|
return function (target, key) {
|
|
28977
29014
|
decorator(target, key, paramIndex);
|
|
28978
29015
|
};
|
|
@@ -29095,12 +29132,42 @@
|
|
|
29095
29132
|
}
|
|
29096
29133
|
}]);
|
|
29097
29134
|
}(BaseRender);
|
|
29098
|
-
RoughCanvasSymbolRender = __decorate$
|
|
29135
|
+
RoughCanvasSymbolRender = __decorate$W([injectable(), __param$v(0, inject(exports.DefaultCanvasSymbolRender)), __metadata$L("design:paramtypes", [Object])], RoughCanvasSymbolRender);
|
|
29099
29136
|
|
|
29100
29137
|
var _roughModule = new ContainerModule(function (bind) {
|
|
29101
29138
|
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);
|
|
29102
29139
|
});
|
|
29103
29140
|
|
|
29141
|
+
var MathPickerContribution = Symbol["for"]("MathPickerContribution");
|
|
29142
|
+
var MathArcPicker = Symbol["for"]("MathArcPicker");
|
|
29143
|
+
var MathAreaPicker = Symbol["for"]("MathAreaPicker");
|
|
29144
|
+
var MathCirclePicker = Symbol["for"]("MathCirclePicker");
|
|
29145
|
+
var MathImagePicker = Symbol["for"]("MathImagePicker");
|
|
29146
|
+
var MathLinePicker = Symbol["for"]("MathLinePicker");
|
|
29147
|
+
var MathPathPicker = Symbol["for"]("MathPathPicker");
|
|
29148
|
+
var MathRectPicker = Symbol["for"]("MathRectPicker");
|
|
29149
|
+
var MathSymbolPicker = Symbol["for"]("MathSymbolPicker");
|
|
29150
|
+
var MathTextPicker = Symbol["for"]("MathTextPicker");
|
|
29151
|
+
var MathPolygonPicker = Symbol["for"]("MathPolygonPicker");
|
|
29152
|
+
var MathGlyphPicker = Symbol["for"]("MathGlyphPicker");
|
|
29153
|
+
var CanvasArcPicker = Symbol["for"]("CanvasArcPicker");
|
|
29154
|
+
var CanvasArc3dPicker = Symbol["for"]("CanvasArc3dPicker");
|
|
29155
|
+
var CanvasAreaPicker = Symbol["for"]("CanvasAreaPicker");
|
|
29156
|
+
var CanvasCirclePicker = Symbol["for"]("CanvasCirclePicker");
|
|
29157
|
+
var CanvasImagePicker = Symbol["for"]("CanvasImagePicker");
|
|
29158
|
+
var CanvasLinePicker = Symbol["for"]("CanvasLinePicker");
|
|
29159
|
+
var CanvasPathPicker = Symbol["for"]("CanvasPathPicker");
|
|
29160
|
+
var CanvasRectPicker = Symbol["for"]("CanvasRectPicker");
|
|
29161
|
+
var CanvasRect3dPicker = Symbol["for"]("CanvasRect3dPicker");
|
|
29162
|
+
var CanvasSymbolPicker = Symbol["for"]("CanvasSymbolPicker");
|
|
29163
|
+
var CanvasTextPicker = Symbol["for"]("CanvasTextPicker");
|
|
29164
|
+
var CanvasPolygonPicker = Symbol["for"]("CanvasPolygonPicker");
|
|
29165
|
+
var CanvasPyramid3dPicker = Symbol["for"]("CanvasPyramid3dPicker");
|
|
29166
|
+
var CanvasRichTextPicker = Symbol["for"]("CanvasRichTextPicker");
|
|
29167
|
+
var CanvasGlyphPicker = Symbol["for"]("CanvasGlyphPicker");
|
|
29168
|
+
var CanvasGroupPicker = Symbol["for"]("CanvasGroupPicker");
|
|
29169
|
+
var CanvasPickerContribution = Symbol["for"]("CanvasPickerContribution");
|
|
29170
|
+
|
|
29104
29171
|
var REACT_TO_CANOPUS_EVENTS = {
|
|
29105
29172
|
onPointerDown: "pointerdown",
|
|
29106
29173
|
onPointerUp: "pointerup",
|
|
@@ -29601,14 +29668,14 @@
|
|
|
29601
29668
|
}]);
|
|
29602
29669
|
}(EventEmitter);
|
|
29603
29670
|
|
|
29604
|
-
var __decorate$
|
|
29671
|
+
var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29605
29672
|
var d,
|
|
29606
29673
|
c = arguments.length,
|
|
29607
29674
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29608
29675
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
29609
29676
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29610
29677
|
},
|
|
29611
|
-
__metadata$
|
|
29678
|
+
__metadata$K = undefined && undefined.__metadata || function (k, v) {
|
|
29612
29679
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29613
29680
|
};
|
|
29614
29681
|
var outP = [0, 0, 0],
|
|
@@ -30305,16 +30372,16 @@
|
|
|
30305
30372
|
}
|
|
30306
30373
|
}]);
|
|
30307
30374
|
}();
|
|
30308
|
-
BrowserContext2d.env = "browser", BrowserContext2d = __decorate$
|
|
30375
|
+
BrowserContext2d.env = "browser", BrowserContext2d = __decorate$V([injectable(), __metadata$K("design:paramtypes", [Object, Number])], BrowserContext2d);
|
|
30309
30376
|
|
|
30310
|
-
var __decorate$
|
|
30377
|
+
var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30311
30378
|
var d,
|
|
30312
30379
|
c = arguments.length,
|
|
30313
30380
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
30314
30381
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
30315
30382
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30316
30383
|
},
|
|
30317
|
-
__metadata$
|
|
30384
|
+
__metadata$J = undefined && undefined.__metadata || function (k, v) {
|
|
30318
30385
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
30319
30386
|
};
|
|
30320
30387
|
var BrowserCanvas = /*#__PURE__*/function (_BaseCanvas) {
|
|
@@ -30394,7 +30461,7 @@
|
|
|
30394
30461
|
}
|
|
30395
30462
|
}]);
|
|
30396
30463
|
}(exports.BaseCanvas);
|
|
30397
|
-
BrowserCanvas.env = "browser", BrowserCanvas = __decorate$
|
|
30464
|
+
BrowserCanvas.env = "browser", BrowserCanvas = __decorate$U([injectable(), __metadata$J("design:paramtypes", [Object])], BrowserCanvas);
|
|
30398
30465
|
|
|
30399
30466
|
function createModule(CanvasConstructor, ContextConstructor) {
|
|
30400
30467
|
return new ContainerModule(function (bind) {
|
|
@@ -30412,47 +30479,17 @@
|
|
|
30412
30479
|
|
|
30413
30480
|
var browserCanvasModule = createModule(BrowserCanvas, BrowserContext2d);
|
|
30414
30481
|
|
|
30415
|
-
var
|
|
30416
|
-
var MathArcPicker = Symbol["for"]("MathArcPicker");
|
|
30417
|
-
var MathAreaPicker = Symbol["for"]("MathAreaPicker");
|
|
30418
|
-
var MathCirclePicker = Symbol["for"]("MathCirclePicker");
|
|
30419
|
-
var MathImagePicker = Symbol["for"]("MathImagePicker");
|
|
30420
|
-
var MathLinePicker = Symbol["for"]("MathLinePicker");
|
|
30421
|
-
var MathPathPicker = Symbol["for"]("MathPathPicker");
|
|
30422
|
-
var MathRectPicker = Symbol["for"]("MathRectPicker");
|
|
30423
|
-
var MathSymbolPicker = Symbol["for"]("MathSymbolPicker");
|
|
30424
|
-
var MathTextPicker = Symbol["for"]("MathTextPicker");
|
|
30425
|
-
var MathPolygonPicker = Symbol["for"]("MathPolygonPicker");
|
|
30426
|
-
var MathGlyphPicker = Symbol["for"]("MathGlyphPicker");
|
|
30427
|
-
var CanvasArcPicker = Symbol["for"]("CanvasArcPicker");
|
|
30428
|
-
var CanvasArc3dPicker = Symbol["for"]("CanvasArc3dPicker");
|
|
30429
|
-
var CanvasAreaPicker = Symbol["for"]("CanvasAreaPicker");
|
|
30430
|
-
var CanvasCirclePicker = Symbol["for"]("CanvasCirclePicker");
|
|
30431
|
-
var CanvasImagePicker = Symbol["for"]("CanvasImagePicker");
|
|
30432
|
-
var CanvasLinePicker = Symbol["for"]("CanvasLinePicker");
|
|
30433
|
-
var CanvasPathPicker = Symbol["for"]("CanvasPathPicker");
|
|
30434
|
-
var CanvasRectPicker = Symbol["for"]("CanvasRectPicker");
|
|
30435
|
-
var CanvasRect3dPicker = Symbol["for"]("CanvasRect3dPicker");
|
|
30436
|
-
var CanvasSymbolPicker = Symbol["for"]("CanvasSymbolPicker");
|
|
30437
|
-
var CanvasTextPicker = Symbol["for"]("CanvasTextPicker");
|
|
30438
|
-
var CanvasPolygonPicker = Symbol["for"]("CanvasPolygonPicker");
|
|
30439
|
-
var CanvasPyramid3dPicker = Symbol["for"]("CanvasPyramid3dPicker");
|
|
30440
|
-
var CanvasRichTextPicker = Symbol["for"]("CanvasRichTextPicker");
|
|
30441
|
-
var CanvasGlyphPicker = Symbol["for"]("CanvasGlyphPicker");
|
|
30442
|
-
var CanvasGroupPicker = Symbol["for"]("CanvasGroupPicker");
|
|
30443
|
-
var CanvasPickerContribution = Symbol["for"]("CanvasPickerContribution");
|
|
30444
|
-
|
|
30445
|
-
var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30482
|
+
var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30446
30483
|
var d,
|
|
30447
30484
|
c = arguments.length,
|
|
30448
30485
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
30449
30486
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
30450
30487
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30451
30488
|
},
|
|
30452
|
-
__metadata$
|
|
30489
|
+
__metadata$I = undefined && undefined.__metadata || function (k, v) {
|
|
30453
30490
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
30454
30491
|
},
|
|
30455
|
-
__param$
|
|
30492
|
+
__param$u = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
30456
30493
|
return function (target, key) {
|
|
30457
30494
|
decorator(target, key, paramIndex);
|
|
30458
30495
|
};
|
|
@@ -30495,9 +30532,11 @@
|
|
|
30495
30532
|
}
|
|
30496
30533
|
var picker = this.pickerMap.get(graphic.numberType);
|
|
30497
30534
|
if (!picker) return null;
|
|
30498
|
-
var
|
|
30535
|
+
var pd = picker.contains(graphic, point, params),
|
|
30536
|
+
g = pd ? graphic : null,
|
|
30499
30537
|
data = {
|
|
30500
|
-
graphic: g
|
|
30538
|
+
graphic: g,
|
|
30539
|
+
params: pd
|
|
30501
30540
|
};
|
|
30502
30541
|
if (g) return data;
|
|
30503
30542
|
if (this.InterceptorContributions.length) for (var _i = 0; _i < this.InterceptorContributions.length; _i++) {
|
|
@@ -30513,9 +30552,9 @@
|
|
|
30513
30552
|
}
|
|
30514
30553
|
}]);
|
|
30515
30554
|
}(exports.DefaultPickService);
|
|
30516
|
-
DefaultCanvasPickerService = __decorate$
|
|
30555
|
+
DefaultCanvasPickerService = __decorate$T([injectable(), __param$u(0, inject(ContributionProvider)), __param$u(0, named(CanvasPickerContribution)), __param$u(1, inject(DrawContribution)), __param$u(2, inject(ContributionProvider)), __param$u(2, named(PickItemInterceptor)), __metadata$I("design:paramtypes", [Object, Object, Object])], DefaultCanvasPickerService);
|
|
30517
30556
|
|
|
30518
|
-
var __decorate$
|
|
30557
|
+
var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30519
30558
|
var d,
|
|
30520
30559
|
c = arguments.length,
|
|
30521
30560
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -30534,7 +30573,7 @@
|
|
|
30534
30573
|
}
|
|
30535
30574
|
}]);
|
|
30536
30575
|
}();
|
|
30537
|
-
DefaultCanvasGroupPicker = __decorate$
|
|
30576
|
+
DefaultCanvasGroupPicker = __decorate$S([injectable()], DefaultCanvasGroupPicker);
|
|
30538
30577
|
|
|
30539
30578
|
var m$1 = new ContainerModule(function (bind, unbind, isBound, rebind) {
|
|
30540
30579
|
m$1.__vloaded || (m$1.__vloaded = !0, bind(CanvasGroupPicker).to(DefaultCanvasGroupPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGroupPicker), bindContributionProvider(bind, CanvasPickerContribution));
|
|
@@ -30550,14 +30589,14 @@
|
|
|
30550
30589
|
}
|
|
30551
30590
|
|
|
30552
30591
|
var _BrowserWindowHandlerContribution_,
|
|
30553
|
-
__decorate$
|
|
30592
|
+
__decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30554
30593
|
var d,
|
|
30555
30594
|
c = arguments.length,
|
|
30556
30595
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
30557
30596
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
30558
30597
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30559
30598
|
},
|
|
30560
|
-
__metadata$
|
|
30599
|
+
__metadata$H = undefined && undefined.__metadata || function (k, v) {
|
|
30561
30600
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
30562
30601
|
};
|
|
30563
30602
|
var BrowserWindowHandlerContribution = _BrowserWindowHandlerContribution_ = /*#__PURE__*/function (_BaseWindowHandlerCon) {
|
|
@@ -30775,21 +30814,21 @@
|
|
|
30775
30814
|
}
|
|
30776
30815
|
}]);
|
|
30777
30816
|
}(exports.BaseWindowHandlerContribution);
|
|
30778
|
-
BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = _BrowserWindowHandlerContribution_ = __decorate$
|
|
30817
|
+
BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = _BrowserWindowHandlerContribution_ = __decorate$R([injectable(), __metadata$H("design:paramtypes", [])], BrowserWindowHandlerContribution);
|
|
30779
30818
|
var browserWindowModule = new ContainerModule(function (bind) {
|
|
30780
30819
|
bind(BrowserWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(function (ctx) {
|
|
30781
30820
|
return ctx.container.get(BrowserWindowHandlerContribution);
|
|
30782
30821
|
}).whenTargetNamed(BrowserWindowHandlerContribution.env);
|
|
30783
30822
|
});
|
|
30784
30823
|
|
|
30785
|
-
var __decorate$
|
|
30824
|
+
var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30786
30825
|
var d,
|
|
30787
30826
|
c = arguments.length,
|
|
30788
30827
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
30789
30828
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
30790
30829
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30791
30830
|
},
|
|
30792
|
-
__metadata$
|
|
30831
|
+
__metadata$G = undefined && undefined.__metadata || function (k, v) {
|
|
30793
30832
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
30794
30833
|
};
|
|
30795
30834
|
var DynamicB = /*#__PURE__*/function () {
|
|
@@ -31057,7 +31096,7 @@
|
|
|
31057
31096
|
}
|
|
31058
31097
|
}]);
|
|
31059
31098
|
}(exports.BaseEnvContribution);
|
|
31060
|
-
BrowserEnvContribution = __decorate$
|
|
31099
|
+
BrowserEnvContribution = __decorate$Q([injectable(), __metadata$G("design:paramtypes", [])], BrowserEnvContribution);
|
|
31061
31100
|
|
|
31062
31101
|
var browserEnvModule = new ContainerModule(function (bind) {
|
|
31063
31102
|
browserEnvModule.isBrowserBound || (browserEnvModule.isBrowserBound = !0, bind(BrowserEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(BrowserEnvContribution));
|
|
@@ -31072,7 +31111,7 @@
|
|
|
31072
31111
|
loadBrowserEnv(container);
|
|
31073
31112
|
}
|
|
31074
31113
|
|
|
31075
|
-
var __decorate$
|
|
31114
|
+
var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31076
31115
|
var d,
|
|
31077
31116
|
c = arguments.length,
|
|
31078
31117
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -31133,16 +31172,16 @@
|
|
|
31133
31172
|
}
|
|
31134
31173
|
}]);
|
|
31135
31174
|
}(BrowserContext2d);
|
|
31136
|
-
FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$
|
|
31175
|
+
FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$P([injectable()], FeishuContext2d);
|
|
31137
31176
|
|
|
31138
|
-
var __decorate$
|
|
31177
|
+
var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31139
31178
|
var d,
|
|
31140
31179
|
c = arguments.length,
|
|
31141
31180
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
31142
31181
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
31143
31182
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31144
31183
|
},
|
|
31145
|
-
__metadata$
|
|
31184
|
+
__metadata$F = undefined && undefined.__metadata || function (k, v) {
|
|
31146
31185
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
31147
31186
|
};
|
|
31148
31187
|
var FeishuCanvas = /*#__PURE__*/function (_BaseCanvas) {
|
|
@@ -31161,26 +31200,26 @@
|
|
|
31161
31200
|
value: function release() {}
|
|
31162
31201
|
}]);
|
|
31163
31202
|
}(exports.BaseCanvas);
|
|
31164
|
-
FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$
|
|
31203
|
+
FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$O([injectable(), __metadata$F("design:paramtypes", [Object])], FeishuCanvas);
|
|
31165
31204
|
|
|
31166
31205
|
var feishuCanvasModule = createModule(FeishuCanvas, FeishuContext2d);
|
|
31167
31206
|
|
|
31168
|
-
var __decorate$
|
|
31207
|
+
var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31169
31208
|
var d,
|
|
31170
31209
|
c = arguments.length,
|
|
31171
31210
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
31172
31211
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
31173
31212
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31174
31213
|
},
|
|
31175
|
-
__metadata$
|
|
31214
|
+
__metadata$E = undefined && undefined.__metadata || function (k, v) {
|
|
31176
31215
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
31177
31216
|
},
|
|
31178
|
-
__param$
|
|
31217
|
+
__param$t = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
31179
31218
|
return function (target, key) {
|
|
31180
31219
|
decorator(target, key, paramIndex);
|
|
31181
31220
|
};
|
|
31182
31221
|
};
|
|
31183
|
-
var MiniAppEventManager$
|
|
31222
|
+
var MiniAppEventManager$4 = /*#__PURE__*/function () {
|
|
31184
31223
|
function MiniAppEventManager() {
|
|
31185
31224
|
_classCallCheck(this, MiniAppEventManager);
|
|
31186
31225
|
this.cache = {};
|
|
@@ -31213,7 +31252,7 @@
|
|
|
31213
31252
|
function FeishuWindowHandlerContribution(global) {
|
|
31214
31253
|
var _this;
|
|
31215
31254
|
_classCallCheck(this, FeishuWindowHandlerContribution);
|
|
31216
|
-
_this = _callSuper(this, FeishuWindowHandlerContribution), _this.global = global, _this.type = "feishu", _this.eventManager = new MiniAppEventManager$
|
|
31255
|
+
_this = _callSuper(this, FeishuWindowHandlerContribution), _this.global = global, _this.type = "feishu", _this.eventManager = new MiniAppEventManager$4();
|
|
31217
31256
|
return _this;
|
|
31218
31257
|
}
|
|
31219
31258
|
_inherits(FeishuWindowHandlerContribution, _BaseWindowHandlerCon);
|
|
@@ -31364,24 +31403,24 @@
|
|
|
31364
31403
|
}
|
|
31365
31404
|
}]);
|
|
31366
31405
|
}(exports.BaseWindowHandlerContribution);
|
|
31367
|
-
FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$
|
|
31406
|
+
FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$N([injectable(), __param$t(0, inject(VGlobal)), __metadata$E("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
|
|
31368
31407
|
var feishuWindowModule = new ContainerModule(function (bind) {
|
|
31369
31408
|
bind(FeishuWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(function (ctx) {
|
|
31370
31409
|
return ctx.container.get(FeishuWindowHandlerContribution);
|
|
31371
31410
|
}).whenTargetNamed(FeishuWindowHandlerContribution.env);
|
|
31372
31411
|
});
|
|
31373
31412
|
|
|
31374
|
-
var __decorate$
|
|
31413
|
+
var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31375
31414
|
var d,
|
|
31376
31415
|
c = arguments.length,
|
|
31377
31416
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
31378
31417
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
31379
31418
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31380
31419
|
},
|
|
31381
|
-
__metadata$
|
|
31420
|
+
__metadata$D = undefined && undefined.__metadata || function (k, v) {
|
|
31382
31421
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
31383
31422
|
},
|
|
31384
|
-
__param$
|
|
31423
|
+
__param$s = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
31385
31424
|
return function (target, key) {
|
|
31386
31425
|
decorator(target, key, paramIndex);
|
|
31387
31426
|
};
|
|
@@ -31415,14 +31454,16 @@
|
|
|
31415
31454
|
if (!1 === graphic.attribute.pickable) return null;
|
|
31416
31455
|
var picker = this.pickerMap.get(graphic.numberType);
|
|
31417
31456
|
if (!picker) return null;
|
|
31418
|
-
var
|
|
31457
|
+
var pd = picker.contains(graphic, point, params),
|
|
31458
|
+
g = pd ? graphic : null;
|
|
31419
31459
|
return g ? {
|
|
31420
|
-
graphic: g
|
|
31460
|
+
graphic: g,
|
|
31461
|
+
params: pd
|
|
31421
31462
|
} : null;
|
|
31422
31463
|
}
|
|
31423
31464
|
}]);
|
|
31424
31465
|
}(exports.DefaultPickService);
|
|
31425
|
-
DefaultMathPickerService = __decorate$
|
|
31466
|
+
DefaultMathPickerService = __decorate$M([injectable(), __param$s(0, inject(ContributionProvider)), __param$s(0, named(MathPickerContribution)), __param$s(1, inject(ContributionProvider)), __param$s(1, named(PickItemInterceptor)), __metadata$D("design:paramtypes", [Object, Object])], DefaultMathPickerService);
|
|
31426
31467
|
|
|
31427
31468
|
var m = new ContainerModule(function (bind) {
|
|
31428
31469
|
m.__vloaded || (m.__vloaded = !0, bindContributionProvider(bind, MathPickerContribution));
|
|
@@ -31534,17 +31575,17 @@
|
|
|
31534
31575
|
}]);
|
|
31535
31576
|
}();
|
|
31536
31577
|
|
|
31537
|
-
var __decorate$
|
|
31578
|
+
var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31538
31579
|
var d,
|
|
31539
31580
|
c = arguments.length,
|
|
31540
31581
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
31541
31582
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
31542
31583
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31543
31584
|
},
|
|
31544
|
-
__metadata$
|
|
31585
|
+
__metadata$C = undefined && undefined.__metadata || function (k, v) {
|
|
31545
31586
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
31546
31587
|
};
|
|
31547
|
-
function makeUpCanvas$
|
|
31588
|
+
function makeUpCanvas$4(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, pixelRatio) {
|
|
31548
31589
|
var dpr = null != pixelRatio ? pixelRatio : tt.getSystemInfoSync().pixelRatio;
|
|
31549
31590
|
canvasIdLists.forEach(function (id, i) {
|
|
31550
31591
|
var ctx = tt.createCanvasContext(id),
|
|
@@ -31579,7 +31620,7 @@
|
|
|
31579
31620
|
}, {
|
|
31580
31621
|
key: "configure",
|
|
31581
31622
|
value: function configure(service, params) {
|
|
31582
|
-
service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$
|
|
31623
|
+
service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$4(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, params.pixelRatio));
|
|
31583
31624
|
}
|
|
31584
31625
|
}, {
|
|
31585
31626
|
key: "loadImage",
|
|
@@ -31666,7 +31707,7 @@
|
|
|
31666
31707
|
}
|
|
31667
31708
|
}]);
|
|
31668
31709
|
}(exports.BaseEnvContribution);
|
|
31669
|
-
FeishuEnvContribution = __decorate$
|
|
31710
|
+
FeishuEnvContribution = __decorate$L([injectable(), __metadata$C("design:paramtypes", [])], FeishuEnvContribution);
|
|
31670
31711
|
|
|
31671
31712
|
var feishuEnvModule = new ContainerModule(function (bind) {
|
|
31672
31713
|
feishuEnvModule.isFeishuBound || (feishuEnvModule.isFeishuBound = !0, bind(FeishuEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(FeishuEnvContribution));
|
|
@@ -31681,7 +31722,7 @@
|
|
|
31681
31722
|
loadFeishuEnv(container);
|
|
31682
31723
|
}
|
|
31683
31724
|
|
|
31684
|
-
var __decorate$
|
|
31725
|
+
var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31685
31726
|
var d,
|
|
31686
31727
|
c = arguments.length,
|
|
31687
31728
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -31763,16 +31804,16 @@
|
|
|
31763
31804
|
}
|
|
31764
31805
|
}]);
|
|
31765
31806
|
}(BrowserContext2d);
|
|
31766
|
-
LynxContext2d.env = "lynx", LynxContext2d = __decorate$
|
|
31807
|
+
LynxContext2d.env = "lynx", LynxContext2d = __decorate$K([injectable()], LynxContext2d);
|
|
31767
31808
|
|
|
31768
|
-
var __decorate$
|
|
31809
|
+
var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31769
31810
|
var d,
|
|
31770
31811
|
c = arguments.length,
|
|
31771
31812
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
31772
31813
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
31773
31814
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31774
31815
|
},
|
|
31775
|
-
__metadata$
|
|
31816
|
+
__metadata$B = undefined && undefined.__metadata || function (k, v) {
|
|
31776
31817
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
31777
31818
|
};
|
|
31778
31819
|
var LynxCanvas = /*#__PURE__*/function (_BaseCanvas) {
|
|
@@ -31797,24 +31838,24 @@
|
|
|
31797
31838
|
value: function release() {}
|
|
31798
31839
|
}]);
|
|
31799
31840
|
}(exports.BaseCanvas);
|
|
31800
|
-
LynxCanvas.env = "lynx", LynxCanvas = __decorate$
|
|
31841
|
+
LynxCanvas.env = "lynx", LynxCanvas = __decorate$J([injectable(), __metadata$B("design:paramtypes", [Object])], LynxCanvas);
|
|
31801
31842
|
|
|
31802
|
-
var __decorate$
|
|
31843
|
+
var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31803
31844
|
var d,
|
|
31804
31845
|
c = arguments.length,
|
|
31805
31846
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
31806
31847
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
31807
31848
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31808
31849
|
},
|
|
31809
|
-
__metadata$
|
|
31850
|
+
__metadata$A = undefined && undefined.__metadata || function (k, v) {
|
|
31810
31851
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
31811
31852
|
},
|
|
31812
|
-
__param$
|
|
31853
|
+
__param$r = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
31813
31854
|
return function (target, key) {
|
|
31814
31855
|
decorator(target, key, paramIndex);
|
|
31815
31856
|
};
|
|
31816
31857
|
};
|
|
31817
|
-
var MiniAppEventManager$
|
|
31858
|
+
var MiniAppEventManager$3 = /*#__PURE__*/function () {
|
|
31818
31859
|
function MiniAppEventManager() {
|
|
31819
31860
|
_classCallCheck(this, MiniAppEventManager);
|
|
31820
31861
|
this.cache = {};
|
|
@@ -31847,7 +31888,7 @@
|
|
|
31847
31888
|
function LynxWindowHandlerContribution(global) {
|
|
31848
31889
|
var _this;
|
|
31849
31890
|
_classCallCheck(this, LynxWindowHandlerContribution);
|
|
31850
|
-
_this = _callSuper(this, LynxWindowHandlerContribution), _this.global = global, _this.type = "lynx", _this.eventManager = new MiniAppEventManager$
|
|
31891
|
+
_this = _callSuper(this, LynxWindowHandlerContribution), _this.global = global, _this.type = "lynx", _this.eventManager = new MiniAppEventManager$3();
|
|
31851
31892
|
return _this;
|
|
31852
31893
|
}
|
|
31853
31894
|
_inherits(LynxWindowHandlerContribution, _BaseWindowHandlerCon);
|
|
@@ -32000,7 +32041,7 @@
|
|
|
32000
32041
|
}
|
|
32001
32042
|
}]);
|
|
32002
32043
|
}(exports.BaseWindowHandlerContribution);
|
|
32003
|
-
LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$
|
|
32044
|
+
LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$I([injectable(), __param$r(0, inject(VGlobal)), __metadata$A("design:paramtypes", [Object])], LynxWindowHandlerContribution);
|
|
32004
32045
|
var lynxWindowModule = new ContainerModule(function (bind) {
|
|
32005
32046
|
bind(LynxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(function (ctx) {
|
|
32006
32047
|
return ctx.container.get(LynxWindowHandlerContribution);
|
|
@@ -32009,21 +32050,21 @@
|
|
|
32009
32050
|
|
|
32010
32051
|
var lynxCanvasModule = createModule(LynxCanvas, LynxContext2d);
|
|
32011
32052
|
|
|
32012
|
-
var __decorate$
|
|
32053
|
+
var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32013
32054
|
var d,
|
|
32014
32055
|
c = arguments.length,
|
|
32015
32056
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
32016
32057
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
32017
32058
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
32018
32059
|
},
|
|
32019
|
-
__metadata$
|
|
32060
|
+
__metadata$z = undefined && undefined.__metadata || function (k, v) {
|
|
32020
32061
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
32021
32062
|
};
|
|
32022
32063
|
var ng = !1;
|
|
32023
32064
|
try {
|
|
32024
32065
|
ng = !!lynx.createCanvasNG;
|
|
32025
32066
|
} catch (err) {}
|
|
32026
|
-
function makeUpCanvas$
|
|
32067
|
+
function makeUpCanvas$3(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, offscreen, pixelRatio) {
|
|
32027
32068
|
var dpr = null != pixelRatio ? pixelRatio : SystemInfo.pixelRatio;
|
|
32028
32069
|
canvasIdLists.forEach(function (id, i) {
|
|
32029
32070
|
var _canvas;
|
|
@@ -32062,7 +32103,7 @@
|
|
|
32062
32103
|
return _createClass(LynxEnvContribution, [{
|
|
32063
32104
|
key: "configure",
|
|
32064
32105
|
value: function configure(service, params) {
|
|
32065
|
-
service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$
|
|
32106
|
+
service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$3(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, !!params.offscreen, params.pixelRatio));
|
|
32066
32107
|
}
|
|
32067
32108
|
}, {
|
|
32068
32109
|
key: "getDynamicCanvasCount",
|
|
@@ -32166,7 +32207,7 @@
|
|
|
32166
32207
|
value: function release() {}
|
|
32167
32208
|
}]);
|
|
32168
32209
|
}(exports.BaseEnvContribution);
|
|
32169
|
-
LynxEnvContribution = __decorate$
|
|
32210
|
+
LynxEnvContribution = __decorate$H([injectable(), __metadata$z("design:paramtypes", [])], LynxEnvContribution);
|
|
32170
32211
|
|
|
32171
32212
|
var lynxEnvModule = new ContainerModule(function (bind) {
|
|
32172
32213
|
lynxEnvModule.isLynxBound || (lynxEnvModule.isLynxBound = !0, bind(LynxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(LynxEnvContribution));
|
|
@@ -32181,14 +32222,14 @@
|
|
|
32181
32222
|
loadLynxEnv(container);
|
|
32182
32223
|
}
|
|
32183
32224
|
|
|
32184
|
-
var __decorate$
|
|
32225
|
+
var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32185
32226
|
var d,
|
|
32186
32227
|
c = arguments.length,
|
|
32187
32228
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
32188
32229
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
32189
32230
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
32190
32231
|
},
|
|
32191
|
-
__metadata$
|
|
32232
|
+
__metadata$y = undefined && undefined.__metadata || function (k, v) {
|
|
32192
32233
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
32193
32234
|
};
|
|
32194
32235
|
var NodeContext2d = /*#__PURE__*/function (_BrowserContext2d) {
|
|
@@ -32207,16 +32248,16 @@
|
|
|
32207
32248
|
value: function release() {}
|
|
32208
32249
|
}]);
|
|
32209
32250
|
}(BrowserContext2d);
|
|
32210
|
-
NodeContext2d.env = "node", NodeContext2d = __decorate$
|
|
32251
|
+
NodeContext2d.env = "node", NodeContext2d = __decorate$G([injectable(), __metadata$y("design:paramtypes", [Object, Number])], NodeContext2d);
|
|
32211
32252
|
|
|
32212
|
-
var __decorate$
|
|
32253
|
+
var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32213
32254
|
var d,
|
|
32214
32255
|
c = arguments.length,
|
|
32215
32256
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
32216
32257
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
32217
32258
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
32218
32259
|
},
|
|
32219
|
-
__metadata$
|
|
32260
|
+
__metadata$x = undefined && undefined.__metadata || function (k, v) {
|
|
32220
32261
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
32221
32262
|
};
|
|
32222
32263
|
var NodeCanvas = /*#__PURE__*/function (_BaseCanvas) {
|
|
@@ -32237,21 +32278,21 @@
|
|
|
32237
32278
|
}
|
|
32238
32279
|
}]);
|
|
32239
32280
|
}(exports.BaseCanvas);
|
|
32240
|
-
NodeCanvas.env = "node", NodeCanvas = __decorate$
|
|
32281
|
+
NodeCanvas.env = "node", NodeCanvas = __decorate$F([injectable(), __metadata$x("design:paramtypes", [Object])], NodeCanvas);
|
|
32241
32282
|
|
|
32242
32283
|
var nodeCanvasModule = createModule(NodeCanvas, NodeContext2d);
|
|
32243
32284
|
|
|
32244
|
-
var __decorate$
|
|
32285
|
+
var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32245
32286
|
var d,
|
|
32246
32287
|
c = arguments.length,
|
|
32247
32288
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
32248
32289
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
32249
32290
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
32250
32291
|
},
|
|
32251
|
-
__metadata$
|
|
32292
|
+
__metadata$w = undefined && undefined.__metadata || function (k, v) {
|
|
32252
32293
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
32253
32294
|
},
|
|
32254
|
-
__param$
|
|
32295
|
+
__param$q = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
32255
32296
|
return function (target, key) {
|
|
32256
32297
|
decorator(target, key, paramIndex);
|
|
32257
32298
|
};
|
|
@@ -32389,14 +32430,14 @@
|
|
|
32389
32430
|
value: function clearViewBox(color) {}
|
|
32390
32431
|
}]);
|
|
32391
32432
|
}(exports.BaseWindowHandlerContribution);
|
|
32392
|
-
NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$
|
|
32433
|
+
NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$E([injectable(), __param$q(0, inject(VGlobal)), __metadata$w("design:paramtypes", [Object])], NodeWindowHandlerContribution);
|
|
32393
32434
|
var nodeWindowModule = new ContainerModule(function (bind) {
|
|
32394
32435
|
bind(NodeWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(function (ctx) {
|
|
32395
32436
|
return ctx.container.get(NodeWindowHandlerContribution);
|
|
32396
32437
|
}).whenTargetNamed(NodeWindowHandlerContribution.env);
|
|
32397
32438
|
});
|
|
32398
32439
|
|
|
32399
|
-
var __decorate$
|
|
32440
|
+
var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32400
32441
|
var d,
|
|
32401
32442
|
c = arguments.length,
|
|
32402
32443
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -32539,7 +32580,7 @@
|
|
|
32539
32580
|
value: function createOffscreenCanvas(params) {}
|
|
32540
32581
|
}]);
|
|
32541
32582
|
}(exports.BaseEnvContribution);
|
|
32542
|
-
NodeEnvContribution = __decorate$
|
|
32583
|
+
NodeEnvContribution = __decorate$D([injectable()], NodeEnvContribution);
|
|
32543
32584
|
|
|
32544
32585
|
var nodeEnvModule = new ContainerModule(function (bind) {
|
|
32545
32586
|
nodeEnvModule.isNodeBound || (nodeEnvModule.isNodeBound = !0, bind(NodeEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(NodeEnvContribution));
|
|
@@ -32553,7 +32594,7 @@
|
|
|
32553
32594
|
loadNodeEnv(container);
|
|
32554
32595
|
}
|
|
32555
32596
|
|
|
32556
|
-
var __decorate$
|
|
32597
|
+
var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32557
32598
|
var d,
|
|
32558
32599
|
c = arguments.length,
|
|
32559
32600
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -32674,16 +32715,16 @@
|
|
|
32674
32715
|
}
|
|
32675
32716
|
}]);
|
|
32676
32717
|
}(BrowserContext2d);
|
|
32677
|
-
TaroContext2d.env = "taro", TaroContext2d = __decorate$
|
|
32718
|
+
TaroContext2d.env = "taro", TaroContext2d = __decorate$C([injectable()], TaroContext2d);
|
|
32678
32719
|
|
|
32679
|
-
var __decorate$
|
|
32720
|
+
var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32680
32721
|
var d,
|
|
32681
32722
|
c = arguments.length,
|
|
32682
32723
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
32683
32724
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
32684
32725
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
32685
32726
|
},
|
|
32686
|
-
__metadata$
|
|
32727
|
+
__metadata$v = undefined && undefined.__metadata || function (k, v) {
|
|
32687
32728
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
32688
32729
|
};
|
|
32689
32730
|
var TaroCanvas = /*#__PURE__*/function (_BaseCanvas) {
|
|
@@ -32702,26 +32743,26 @@
|
|
|
32702
32743
|
value: function release() {}
|
|
32703
32744
|
}]);
|
|
32704
32745
|
}(exports.BaseCanvas);
|
|
32705
|
-
TaroCanvas.env = "taro", TaroCanvas = __decorate$
|
|
32746
|
+
TaroCanvas.env = "taro", TaroCanvas = __decorate$B([injectable(), __metadata$v("design:paramtypes", [Object])], TaroCanvas);
|
|
32706
32747
|
|
|
32707
32748
|
var taroCanvasModule = createModule(TaroCanvas, TaroContext2d);
|
|
32708
32749
|
|
|
32709
|
-
var __decorate$
|
|
32750
|
+
var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32710
32751
|
var d,
|
|
32711
32752
|
c = arguments.length,
|
|
32712
32753
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
32713
32754
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
32714
32755
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
32715
32756
|
},
|
|
32716
|
-
__metadata$
|
|
32757
|
+
__metadata$u = undefined && undefined.__metadata || function (k, v) {
|
|
32717
32758
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
32718
32759
|
},
|
|
32719
|
-
__param$
|
|
32760
|
+
__param$p = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
32720
32761
|
return function (target, key) {
|
|
32721
32762
|
decorator(target, key, paramIndex);
|
|
32722
32763
|
};
|
|
32723
32764
|
};
|
|
32724
|
-
var MiniAppEventManager$
|
|
32765
|
+
var MiniAppEventManager$2 = /*#__PURE__*/function () {
|
|
32725
32766
|
function MiniAppEventManager() {
|
|
32726
32767
|
_classCallCheck(this, MiniAppEventManager);
|
|
32727
32768
|
this.cache = {};
|
|
@@ -32754,7 +32795,7 @@
|
|
|
32754
32795
|
function TaroWindowHandlerContribution(global) {
|
|
32755
32796
|
var _this;
|
|
32756
32797
|
_classCallCheck(this, TaroWindowHandlerContribution);
|
|
32757
|
-
_this = _callSuper(this, TaroWindowHandlerContribution), _this.global = global, _this.type = "taro", _this.eventManager = new MiniAppEventManager$
|
|
32798
|
+
_this = _callSuper(this, TaroWindowHandlerContribution), _this.global = global, _this.type = "taro", _this.eventManager = new MiniAppEventManager$2();
|
|
32758
32799
|
return _this;
|
|
32759
32800
|
}
|
|
32760
32801
|
_inherits(TaroWindowHandlerContribution, _BaseWindowHandlerCon);
|
|
@@ -32868,17 +32909,441 @@
|
|
|
32868
32909
|
key: "dispatchEvent",
|
|
32869
32910
|
value: function dispatchEvent(event) {
|
|
32870
32911
|
var type = event.type;
|
|
32871
|
-
return !!this.eventManager.cache[type] && (event.changedTouches.length > 0 && (event.changedTouches.forEach(function (d, i) {
|
|
32872
|
-
event.changedTouches[i] = Object.assign(Object.assign({}, event.changedTouches[i]), {
|
|
32873
|
-
offsetX: d.x,
|
|
32874
|
-
offsetY: d.y
|
|
32875
|
-
});
|
|
32876
|
-
}), event.offsetX = event.changedTouches[0].offsetX, event.offsetY = event.changedTouches[0].offsetY), event.touches.length > 0 && event.touches.forEach(function (d, i) {
|
|
32877
|
-
event.touches[i] = Object.assign(Object.assign({}, event.touches[i]), {
|
|
32878
|
-
offsetX: d.x,
|
|
32879
|
-
offsetY: d.y
|
|
32880
|
-
});
|
|
32881
|
-
}), event.preventDefault = function () {}, event.stopPropagation = function () {}, this.eventManager.cache[type].listener && this.eventManager.cache[type].listener.forEach(function (f) {
|
|
32912
|
+
return !!this.eventManager.cache[type] && (event.changedTouches.length > 0 && (event.changedTouches.forEach(function (d, i) {
|
|
32913
|
+
event.changedTouches[i] = Object.assign(Object.assign({}, event.changedTouches[i]), {
|
|
32914
|
+
offsetX: d.x,
|
|
32915
|
+
offsetY: d.y
|
|
32916
|
+
});
|
|
32917
|
+
}), event.offsetX = event.changedTouches[0].offsetX, event.offsetY = event.changedTouches[0].offsetY), event.touches.length > 0 && event.touches.forEach(function (d, i) {
|
|
32918
|
+
event.touches[i] = Object.assign(Object.assign({}, event.touches[i]), {
|
|
32919
|
+
offsetX: d.x,
|
|
32920
|
+
offsetY: d.y
|
|
32921
|
+
});
|
|
32922
|
+
}), event.preventDefault = function () {}, event.stopPropagation = function () {}, this.eventManager.cache[type].listener && this.eventManager.cache[type].listener.forEach(function (f) {
|
|
32923
|
+
f(event);
|
|
32924
|
+
}), !0);
|
|
32925
|
+
}
|
|
32926
|
+
}, {
|
|
32927
|
+
key: "getStyle",
|
|
32928
|
+
value: function getStyle() {
|
|
32929
|
+
return {};
|
|
32930
|
+
}
|
|
32931
|
+
}, {
|
|
32932
|
+
key: "setStyle",
|
|
32933
|
+
value: function setStyle(style) {}
|
|
32934
|
+
}, {
|
|
32935
|
+
key: "getBoundingClientRect",
|
|
32936
|
+
value: function getBoundingClientRect() {
|
|
32937
|
+
var wh = this.getWH();
|
|
32938
|
+
return {
|
|
32939
|
+
x: 0,
|
|
32940
|
+
y: 0,
|
|
32941
|
+
width: wh.width,
|
|
32942
|
+
height: wh.height,
|
|
32943
|
+
left: 0,
|
|
32944
|
+
top: 0,
|
|
32945
|
+
right: 0,
|
|
32946
|
+
bottom: 0
|
|
32947
|
+
};
|
|
32948
|
+
}
|
|
32949
|
+
}, {
|
|
32950
|
+
key: "clearViewBox",
|
|
32951
|
+
value: function clearViewBox(color) {
|
|
32952
|
+
var vb = this.viewBox,
|
|
32953
|
+
context = this.getContext(),
|
|
32954
|
+
dpr = this.getDpr();
|
|
32955
|
+
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();
|
|
32956
|
+
}
|
|
32957
|
+
}]);
|
|
32958
|
+
}(exports.BaseWindowHandlerContribution);
|
|
32959
|
+
TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$A([injectable(), __param$p(0, inject(VGlobal)), __metadata$u("design:paramtypes", [Object])], TaroWindowHandlerContribution);
|
|
32960
|
+
var taroWindowModule = new ContainerModule(function (bind) {
|
|
32961
|
+
bind(TaroWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(function (ctx) {
|
|
32962
|
+
return ctx.container.get(TaroWindowHandlerContribution);
|
|
32963
|
+
}).whenTargetNamed(TaroWindowHandlerContribution.env);
|
|
32964
|
+
});
|
|
32965
|
+
|
|
32966
|
+
var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32967
|
+
var d,
|
|
32968
|
+
c = arguments.length,
|
|
32969
|
+
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
32970
|
+
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
32971
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
32972
|
+
},
|
|
32973
|
+
__metadata$t = undefined && undefined.__metadata || function (k, v) {
|
|
32974
|
+
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
32975
|
+
};
|
|
32976
|
+
function makeUpCanvas$2(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, taro, dpr) {
|
|
32977
|
+
canvasIdLists.forEach(function (id, i) {
|
|
32978
|
+
var ctx = taro.createCanvasContext(id),
|
|
32979
|
+
canvas = new CanvasWrapDisableWH(ctx.canvas || {}, ctx, dpr, domref.width, domref.height, id);
|
|
32980
|
+
return ctx.canvas = canvas, canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas), canvas;
|
|
32981
|
+
});
|
|
32982
|
+
}
|
|
32983
|
+
var TaroEnvContribution = /*#__PURE__*/function (_BaseEnvContribution) {
|
|
32984
|
+
function TaroEnvContribution() {
|
|
32985
|
+
var _this;
|
|
32986
|
+
_classCallCheck(this, TaroEnvContribution);
|
|
32987
|
+
_this = _callSuper(this, TaroEnvContribution), _this.type = "taro", _this.supportEvent = !0, _this.canvasMap = new Map(), _this.freeCanvasList = [], _this.canvasIdx = 0, _this.supportsTouchEvents = !0;
|
|
32988
|
+
try {
|
|
32989
|
+
_this.supportsPointerEvents = !!globalThis.PointerEvent, _this.supportsMouseEvents = !!globalThis.MouseEvent;
|
|
32990
|
+
} catch (err) {
|
|
32991
|
+
_this.supportsPointerEvents = !1, _this.supportsMouseEvents = !1;
|
|
32992
|
+
}
|
|
32993
|
+
_this.applyStyles = !0;
|
|
32994
|
+
return _this;
|
|
32995
|
+
}
|
|
32996
|
+
_inherits(TaroEnvContribution, _BaseEnvContribution);
|
|
32997
|
+
return _createClass(TaroEnvContribution, [{
|
|
32998
|
+
key: "getDynamicCanvasCount",
|
|
32999
|
+
value: function getDynamicCanvasCount() {
|
|
33000
|
+
return this.freeCanvasList.length;
|
|
33001
|
+
}
|
|
33002
|
+
}, {
|
|
33003
|
+
key: "getStaticCanvasCount",
|
|
33004
|
+
value: function getStaticCanvasCount() {
|
|
33005
|
+
return 9999;
|
|
33006
|
+
}
|
|
33007
|
+
}, {
|
|
33008
|
+
key: "mapToCanvasPoint",
|
|
33009
|
+
value: function mapToCanvasPoint(event) {
|
|
33010
|
+
var _a;
|
|
33011
|
+
return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
|
|
33012
|
+
}
|
|
33013
|
+
}, {
|
|
33014
|
+
key: "configure",
|
|
33015
|
+
value: function configure(service, params) {
|
|
33016
|
+
service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$2(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, params.taro, params.pixelRatio), this.taro = params.taro, this.pixelRatio = params.pixelRatio);
|
|
33017
|
+
}
|
|
33018
|
+
}, {
|
|
33019
|
+
key: "loadImage",
|
|
33020
|
+
value: function loadImage(url) {
|
|
33021
|
+
return Promise.resolve({
|
|
33022
|
+
data: url,
|
|
33023
|
+
loadState: "success"
|
|
33024
|
+
});
|
|
33025
|
+
}
|
|
33026
|
+
}, {
|
|
33027
|
+
key: "loadSvg",
|
|
33028
|
+
value: function loadSvg(svgStr) {
|
|
33029
|
+
var _window = window || globalThis;
|
|
33030
|
+
if (_window.DOMParser) {
|
|
33031
|
+
var svg = new _window.DOMParser().parseFromString(svgStr, "image/svg+xml").children[0],
|
|
33032
|
+
data = new XMLSerializer().serializeToString(svg),
|
|
33033
|
+
url = "data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(data));
|
|
33034
|
+
return Promise.resolve({
|
|
33035
|
+
data: url,
|
|
33036
|
+
loadState: "success"
|
|
33037
|
+
});
|
|
33038
|
+
}
|
|
33039
|
+
if (_window.Blob) {
|
|
33040
|
+
var _data = new _window.Blob([svgStr], {
|
|
33041
|
+
type: "image/svg+xml"
|
|
33042
|
+
}),
|
|
33043
|
+
_url = _window.URL.createObjectURL(_data);
|
|
33044
|
+
return Promise.resolve({
|
|
33045
|
+
data: _url,
|
|
33046
|
+
loadState: "success"
|
|
33047
|
+
});
|
|
33048
|
+
}
|
|
33049
|
+
return Promise.reject();
|
|
33050
|
+
}
|
|
33051
|
+
}, {
|
|
33052
|
+
key: "createCanvas",
|
|
33053
|
+
value: function createCanvas(params) {
|
|
33054
|
+
var result = this.freeCanvasList[this.canvasIdx] || this.freeCanvasList[this.freeCanvasList.length - 1];
|
|
33055
|
+
return this.canvasIdx++, result;
|
|
33056
|
+
}
|
|
33057
|
+
}, {
|
|
33058
|
+
key: "createOffscreenCanvas",
|
|
33059
|
+
value: function createOffscreenCanvas(params) {}
|
|
33060
|
+
}, {
|
|
33061
|
+
key: "releaseCanvas",
|
|
33062
|
+
value: function releaseCanvas(canvas) {}
|
|
33063
|
+
}, {
|
|
33064
|
+
key: "getDevicePixelRatio",
|
|
33065
|
+
value: function getDevicePixelRatio() {
|
|
33066
|
+
return this.pixelRatio;
|
|
33067
|
+
}
|
|
33068
|
+
}, {
|
|
33069
|
+
key: "getRequestAnimationFrame",
|
|
33070
|
+
value: function getRequestAnimationFrame() {
|
|
33071
|
+
return requestAnimationFrame;
|
|
33072
|
+
}
|
|
33073
|
+
}, {
|
|
33074
|
+
key: "getCancelAnimationFrame",
|
|
33075
|
+
value: function getCancelAnimationFrame() {
|
|
33076
|
+
return cancelAnimationFrame;
|
|
33077
|
+
}
|
|
33078
|
+
}, {
|
|
33079
|
+
key: "addEventListener",
|
|
33080
|
+
value: function addEventListener(type, listener, options) {
|
|
33081
|
+
return null;
|
|
33082
|
+
}
|
|
33083
|
+
}, {
|
|
33084
|
+
key: "removeEventListener",
|
|
33085
|
+
value: function removeEventListener(type, listener, options) {
|
|
33086
|
+
return null;
|
|
33087
|
+
}
|
|
33088
|
+
}, {
|
|
33089
|
+
key: "dispatchEvent",
|
|
33090
|
+
value: function dispatchEvent(event) {
|
|
33091
|
+
return null;
|
|
33092
|
+
}
|
|
33093
|
+
}, {
|
|
33094
|
+
key: "getElementById",
|
|
33095
|
+
value: function getElementById(str) {
|
|
33096
|
+
return this.canvasMap.get(str);
|
|
33097
|
+
}
|
|
33098
|
+
}, {
|
|
33099
|
+
key: "getRootElement",
|
|
33100
|
+
value: function getRootElement() {
|
|
33101
|
+
return null;
|
|
33102
|
+
}
|
|
33103
|
+
}, {
|
|
33104
|
+
key: "getDocument",
|
|
33105
|
+
value: function getDocument() {
|
|
33106
|
+
return null;
|
|
33107
|
+
}
|
|
33108
|
+
}, {
|
|
33109
|
+
key: "release",
|
|
33110
|
+
value: function release() {}
|
|
33111
|
+
}]);
|
|
33112
|
+
}(exports.BaseEnvContribution);
|
|
33113
|
+
TaroEnvContribution = __decorate$z([injectable(), __metadata$t("design:paramtypes", [])], TaroEnvContribution);
|
|
33114
|
+
|
|
33115
|
+
var taroEnvModule = new ContainerModule(function (bind) {
|
|
33116
|
+
taroEnvModule.isTaroBound || (taroEnvModule.isTaroBound = !0, bind(TaroEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TaroEnvContribution));
|
|
33117
|
+
});
|
|
33118
|
+
taroEnvModule.isTaroBound = !1;
|
|
33119
|
+
function loadTaroEnv(container) {
|
|
33120
|
+
var loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
|
|
33121
|
+
loadTaroEnv.__loaded || (loadTaroEnv.__loaded = !0, container.load(taroEnvModule), container.load(taroCanvasModule), container.load(taroWindowModule), loadPicker && loadMathPicker(container));
|
|
33122
|
+
}
|
|
33123
|
+
loadTaroEnv.__loaded = !1;
|
|
33124
|
+
function initTaroEnv() {
|
|
33125
|
+
loadTaroEnv(container);
|
|
33126
|
+
}
|
|
33127
|
+
|
|
33128
|
+
var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33129
|
+
var d,
|
|
33130
|
+
c = arguments.length,
|
|
33131
|
+
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
33132
|
+
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
33133
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
33134
|
+
};
|
|
33135
|
+
var WxContext2d = /*#__PURE__*/function (_BrowserContext2d) {
|
|
33136
|
+
function WxContext2d() {
|
|
33137
|
+
_classCallCheck(this, WxContext2d);
|
|
33138
|
+
return _callSuper(this, WxContext2d, arguments);
|
|
33139
|
+
}
|
|
33140
|
+
_inherits(WxContext2d, _BrowserContext2d);
|
|
33141
|
+
return _createClass(WxContext2d, [{
|
|
33142
|
+
key: "draw",
|
|
33143
|
+
value: function draw() {}
|
|
33144
|
+
}, {
|
|
33145
|
+
key: "createPattern",
|
|
33146
|
+
value: function createPattern(image, repetition) {
|
|
33147
|
+
return null;
|
|
33148
|
+
}
|
|
33149
|
+
}]);
|
|
33150
|
+
}(BrowserContext2d);
|
|
33151
|
+
WxContext2d.env = "wx", WxContext2d = __decorate$y([injectable()], WxContext2d);
|
|
33152
|
+
|
|
33153
|
+
var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33154
|
+
var d,
|
|
33155
|
+
c = arguments.length,
|
|
33156
|
+
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
33157
|
+
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
33158
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
33159
|
+
},
|
|
33160
|
+
__metadata$s = undefined && undefined.__metadata || function (k, v) {
|
|
33161
|
+
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
33162
|
+
};
|
|
33163
|
+
var WxCanvas = /*#__PURE__*/function (_BaseCanvas) {
|
|
33164
|
+
function WxCanvas(params) {
|
|
33165
|
+
_classCallCheck(this, WxCanvas);
|
|
33166
|
+
return _callSuper(this, WxCanvas, [params]);
|
|
33167
|
+
}
|
|
33168
|
+
_inherits(WxCanvas, _BaseCanvas);
|
|
33169
|
+
return _createClass(WxCanvas, [{
|
|
33170
|
+
key: "init",
|
|
33171
|
+
value: function init() {
|
|
33172
|
+
this._context = new WxContext2d(this, this._dpr);
|
|
33173
|
+
}
|
|
33174
|
+
}, {
|
|
33175
|
+
key: "release",
|
|
33176
|
+
value: function release() {}
|
|
33177
|
+
}]);
|
|
33178
|
+
}(exports.BaseCanvas);
|
|
33179
|
+
WxCanvas.env = "wx", WxCanvas = __decorate$x([injectable(), __metadata$s("design:paramtypes", [Object])], WxCanvas);
|
|
33180
|
+
|
|
33181
|
+
var wxCanvasModule = createModule(WxCanvas, WxContext2d);
|
|
33182
|
+
|
|
33183
|
+
var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33184
|
+
var d,
|
|
33185
|
+
c = arguments.length,
|
|
33186
|
+
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
33187
|
+
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
33188
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
33189
|
+
},
|
|
33190
|
+
__metadata$r = undefined && undefined.__metadata || function (k, v) {
|
|
33191
|
+
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
33192
|
+
},
|
|
33193
|
+
__param$o = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
33194
|
+
return function (target, key) {
|
|
33195
|
+
decorator(target, key, paramIndex);
|
|
33196
|
+
};
|
|
33197
|
+
};
|
|
33198
|
+
var MiniAppEventManager$1 = /*#__PURE__*/function () {
|
|
33199
|
+
function MiniAppEventManager() {
|
|
33200
|
+
_classCallCheck(this, MiniAppEventManager);
|
|
33201
|
+
this.cache = {};
|
|
33202
|
+
}
|
|
33203
|
+
return _createClass(MiniAppEventManager, [{
|
|
33204
|
+
key: "addEventListener",
|
|
33205
|
+
value: function addEventListener(type, func) {
|
|
33206
|
+
type && func && (this.cache[type] = this.cache[type] || {
|
|
33207
|
+
listener: []
|
|
33208
|
+
}, this.cache[type].listener.push(func));
|
|
33209
|
+
}
|
|
33210
|
+
}, {
|
|
33211
|
+
key: "removeEventListener",
|
|
33212
|
+
value: function removeEventListener(type, func) {
|
|
33213
|
+
if (!type || !func) return;
|
|
33214
|
+
if (!this.cache[type]) return;
|
|
33215
|
+
var index = this.cache[type].listener.findIndex(function (f) {
|
|
33216
|
+
return f === func;
|
|
33217
|
+
});
|
|
33218
|
+
index >= 0 && this.cache[type].listener.splice(index, 1);
|
|
33219
|
+
}
|
|
33220
|
+
}, {
|
|
33221
|
+
key: "cleanEvent",
|
|
33222
|
+
value: function cleanEvent() {
|
|
33223
|
+
this.cache = {};
|
|
33224
|
+
}
|
|
33225
|
+
}]);
|
|
33226
|
+
}();
|
|
33227
|
+
var WxWindowHandlerContribution = /*#__PURE__*/function (_BaseWindowHandlerCon) {
|
|
33228
|
+
function WxWindowHandlerContribution(global) {
|
|
33229
|
+
var _this;
|
|
33230
|
+
_classCallCheck(this, WxWindowHandlerContribution);
|
|
33231
|
+
_this = _callSuper(this, WxWindowHandlerContribution), _this.global = global, _this.type = "wx", _this.eventManager = new MiniAppEventManager$1();
|
|
33232
|
+
return _this;
|
|
33233
|
+
}
|
|
33234
|
+
_inherits(WxWindowHandlerContribution, _BaseWindowHandlerCon);
|
|
33235
|
+
return _createClass(WxWindowHandlerContribution, [{
|
|
33236
|
+
key: "container",
|
|
33237
|
+
get: function get() {
|
|
33238
|
+
return null;
|
|
33239
|
+
}
|
|
33240
|
+
}, {
|
|
33241
|
+
key: "getTitle",
|
|
33242
|
+
value: function getTitle() {
|
|
33243
|
+
return this.canvas.id.toString();
|
|
33244
|
+
}
|
|
33245
|
+
}, {
|
|
33246
|
+
key: "getWH",
|
|
33247
|
+
value: function getWH() {
|
|
33248
|
+
return {
|
|
33249
|
+
width: this.canvas.width / (this.canvas.dpr || 1),
|
|
33250
|
+
height: this.canvas.height / (this.canvas.dpr || 1)
|
|
33251
|
+
};
|
|
33252
|
+
}
|
|
33253
|
+
}, {
|
|
33254
|
+
key: "getXY",
|
|
33255
|
+
value: function getXY() {
|
|
33256
|
+
return {
|
|
33257
|
+
x: 0,
|
|
33258
|
+
y: 0
|
|
33259
|
+
};
|
|
33260
|
+
}
|
|
33261
|
+
}, {
|
|
33262
|
+
key: "createWindow",
|
|
33263
|
+
value: function createWindow(params) {
|
|
33264
|
+
params.canvas ? this.createWindowByCanvas(params) : this.createWindowByConfig(params);
|
|
33265
|
+
}
|
|
33266
|
+
}, {
|
|
33267
|
+
key: "createWindowByConfig",
|
|
33268
|
+
value: function createWindowByConfig(params) {
|
|
33269
|
+
var nativeCanvas = this.global.createCanvas({
|
|
33270
|
+
width: params.width,
|
|
33271
|
+
height: params.height
|
|
33272
|
+
}),
|
|
33273
|
+
options = {
|
|
33274
|
+
width: params.width,
|
|
33275
|
+
height: params.height,
|
|
33276
|
+
dpr: params.dpr,
|
|
33277
|
+
nativeCanvas: nativeCanvas,
|
|
33278
|
+
id: Generator.GenAutoIncrementId().toString(),
|
|
33279
|
+
canvasControled: !1
|
|
33280
|
+
};
|
|
33281
|
+
this.canvas = new WxCanvas(options);
|
|
33282
|
+
}
|
|
33283
|
+
}, {
|
|
33284
|
+
key: "createWindowByCanvas",
|
|
33285
|
+
value: function createWindowByCanvas(params) {
|
|
33286
|
+
var canvas;
|
|
33287
|
+
if ("string" == typeof params.canvas) {
|
|
33288
|
+
if (canvas = this.global.getElementById(params.canvas), !canvas) throw new Error("canvasId 参数不正确,请确认canvas存在并插入dom");
|
|
33289
|
+
} else canvas = params.canvas;
|
|
33290
|
+
var width = params.width,
|
|
33291
|
+
height = params.height;
|
|
33292
|
+
if (null == width || null == height || !params.canvasControled) {
|
|
33293
|
+
var data = canvas.getBoundingClientRect();
|
|
33294
|
+
width = data.width, height = data.height;
|
|
33295
|
+
}
|
|
33296
|
+
var dpr = params.dpr;
|
|
33297
|
+
null == dpr && (dpr = canvas.width / width), this.canvas = new WxCanvas({
|
|
33298
|
+
width: width,
|
|
33299
|
+
height: height,
|
|
33300
|
+
dpr: dpr,
|
|
33301
|
+
nativeCanvas: canvas,
|
|
33302
|
+
canvasControled: params.canvasControled
|
|
33303
|
+
});
|
|
33304
|
+
}
|
|
33305
|
+
}, {
|
|
33306
|
+
key: "releaseWindow",
|
|
33307
|
+
value: function releaseWindow() {}
|
|
33308
|
+
}, {
|
|
33309
|
+
key: "resizeWindow",
|
|
33310
|
+
value: function resizeWindow(width, height) {}
|
|
33311
|
+
}, {
|
|
33312
|
+
key: "setDpr",
|
|
33313
|
+
value: function setDpr(dpr) {
|
|
33314
|
+
this.canvas.dpr = dpr;
|
|
33315
|
+
}
|
|
33316
|
+
}, {
|
|
33317
|
+
key: "getContext",
|
|
33318
|
+
value: function getContext() {
|
|
33319
|
+
return this.canvas.getContext();
|
|
33320
|
+
}
|
|
33321
|
+
}, {
|
|
33322
|
+
key: "getNativeHandler",
|
|
33323
|
+
value: function getNativeHandler() {
|
|
33324
|
+
return this.canvas;
|
|
33325
|
+
}
|
|
33326
|
+
}, {
|
|
33327
|
+
key: "getDpr",
|
|
33328
|
+
value: function getDpr() {
|
|
33329
|
+
return this.canvas.dpr;
|
|
33330
|
+
}
|
|
33331
|
+
}, {
|
|
33332
|
+
key: "addEventListener",
|
|
33333
|
+
value: function addEventListener(type, listener) {
|
|
33334
|
+
this.eventManager.addEventListener(type, listener);
|
|
33335
|
+
}
|
|
33336
|
+
}, {
|
|
33337
|
+
key: "removeEventListener",
|
|
33338
|
+
value: function removeEventListener(type, listener) {
|
|
33339
|
+
this.eventManager.removeEventListener(type, listener);
|
|
33340
|
+
}
|
|
33341
|
+
}, {
|
|
33342
|
+
key: "dispatchEvent",
|
|
33343
|
+
value: function dispatchEvent(event) {
|
|
33344
|
+
var _a, _b, _c, _d;
|
|
33345
|
+
var type = event.type;
|
|
33346
|
+
return !!this.eventManager.cache[type] && (event.changedTouches && event.changedTouches[0] && (event.offsetX = event.changedTouches[0].x, event.changedTouches[0].offsetX = null !== (_a = event.changedTouches[0].x) && void 0 !== _a ? _a : event.changedTouches[0].pageX, event.changedTouches[0].clientX = null !== (_b = event.changedTouches[0].x) && void 0 !== _b ? _b : event.changedTouches[0].pageX, event.offsetY = event.changedTouches[0].y, event.changedTouches[0].offsetY = null !== (_c = event.changedTouches[0].y) && void 0 !== _c ? _c : event.changedTouches[0].pageY, event.changedTouches[0].clientY = null !== (_d = event.changedTouches[0].y) && void 0 !== _d ? _d : event.changedTouches[0].pageY), event.preventDefault = function () {}, event.stopPropagation = function () {}, this.eventManager.cache[type].listener && this.eventManager.cache[type].listener.forEach(function (f) {
|
|
32882
33347
|
f(event);
|
|
32883
33348
|
}), !0);
|
|
32884
33349
|
}
|
|
@@ -32915,11 +33380,11 @@
|
|
|
32915
33380
|
}
|
|
32916
33381
|
}]);
|
|
32917
33382
|
}(exports.BaseWindowHandlerContribution);
|
|
32918
|
-
|
|
32919
|
-
var
|
|
32920
|
-
bind(
|
|
32921
|
-
return ctx.container.get(
|
|
32922
|
-
}).whenTargetNamed(
|
|
33383
|
+
WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$w([injectable(), __param$o(0, inject(VGlobal)), __metadata$r("design:paramtypes", [Object])], WxWindowHandlerContribution);
|
|
33384
|
+
var wxWindowModule = new ContainerModule(function (bind) {
|
|
33385
|
+
bind(WxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(function (ctx) {
|
|
33386
|
+
return ctx.container.get(WxWindowHandlerContribution);
|
|
33387
|
+
}).whenTargetNamed(WxWindowHandlerContribution.env);
|
|
32923
33388
|
});
|
|
32924
33389
|
|
|
32925
33390
|
var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
@@ -32931,19 +33396,88 @@
|
|
|
32931
33396
|
},
|
|
32932
33397
|
__metadata$q = undefined && undefined.__metadata || function (k, v) {
|
|
32933
33398
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
33399
|
+
},
|
|
33400
|
+
__awaiter$1 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
33401
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33402
|
+
function fulfilled(value) {
|
|
33403
|
+
try {
|
|
33404
|
+
step(generator.next(value));
|
|
33405
|
+
} catch (e) {
|
|
33406
|
+
reject(e);
|
|
33407
|
+
}
|
|
33408
|
+
}
|
|
33409
|
+
function rejected(value) {
|
|
33410
|
+
try {
|
|
33411
|
+
step(generator["throw"](value));
|
|
33412
|
+
} catch (e) {
|
|
33413
|
+
reject(e);
|
|
33414
|
+
}
|
|
33415
|
+
}
|
|
33416
|
+
function step(result) {
|
|
33417
|
+
var value;
|
|
33418
|
+
result.done ? resolve(result.value) : (value = result.value, value instanceof P ? value : new P(function (resolve) {
|
|
33419
|
+
resolve(value);
|
|
33420
|
+
})).then(fulfilled, rejected);
|
|
33421
|
+
}
|
|
33422
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
33423
|
+
});
|
|
32934
33424
|
};
|
|
32935
|
-
function makeUpCanvas$1(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList,
|
|
32936
|
-
|
|
32937
|
-
var
|
|
32938
|
-
|
|
32939
|
-
|
|
32940
|
-
|
|
33425
|
+
function makeUpCanvas$1(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, component) {
|
|
33426
|
+
return __awaiter$1(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
33427
|
+
var dpr, _loop, i;
|
|
33428
|
+
return _regeneratorRuntime().wrap(function _callee$(_context2) {
|
|
33429
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
33430
|
+
case 0:
|
|
33431
|
+
dpr = wx.getSystemInfoSync().pixelRatio;
|
|
33432
|
+
_loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop(i) {
|
|
33433
|
+
var id;
|
|
33434
|
+
return _regeneratorRuntime().wrap(function _loop$(_context) {
|
|
33435
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33436
|
+
case 0:
|
|
33437
|
+
id = canvasIdLists[i];
|
|
33438
|
+
_context.next = 3;
|
|
33439
|
+
return new Promise(function (resolve) {
|
|
33440
|
+
var data = wx.createSelectorQuery();
|
|
33441
|
+
component && (data = data["in"](component)), data.select("#".concat(id)).fields({
|
|
33442
|
+
node: !0,
|
|
33443
|
+
size: !0
|
|
33444
|
+
}).exec(function (res) {
|
|
33445
|
+
if (!res[0]) return;
|
|
33446
|
+
var canvas = res[0].node,
|
|
33447
|
+
width = res[0].width,
|
|
33448
|
+
height = res[0].height;
|
|
33449
|
+
canvas.width = width * dpr, canvas.height = height * dpr, canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas), resolve(null);
|
|
33450
|
+
});
|
|
33451
|
+
});
|
|
33452
|
+
case 3:
|
|
33453
|
+
case "end":
|
|
33454
|
+
return _context.stop();
|
|
33455
|
+
}
|
|
33456
|
+
}, _loop);
|
|
33457
|
+
});
|
|
33458
|
+
i = 0;
|
|
33459
|
+
case 3:
|
|
33460
|
+
if (!(i < canvasIdLists.length)) {
|
|
33461
|
+
_context2.next = 8;
|
|
33462
|
+
break;
|
|
33463
|
+
}
|
|
33464
|
+
return _context2.delegateYield(_loop(i), "t0", 5);
|
|
33465
|
+
case 5:
|
|
33466
|
+
i++;
|
|
33467
|
+
_context2.next = 3;
|
|
33468
|
+
break;
|
|
33469
|
+
case 8:
|
|
33470
|
+
case "end":
|
|
33471
|
+
return _context2.stop();
|
|
33472
|
+
}
|
|
33473
|
+
}, _callee);
|
|
33474
|
+
}));
|
|
32941
33475
|
}
|
|
32942
|
-
var
|
|
32943
|
-
function
|
|
33476
|
+
var WxEnvContribution = /*#__PURE__*/function (_BaseEnvContribution) {
|
|
33477
|
+
function WxEnvContribution() {
|
|
32944
33478
|
var _this;
|
|
32945
|
-
_classCallCheck(this,
|
|
32946
|
-
_this = _callSuper(this,
|
|
33479
|
+
_classCallCheck(this, WxEnvContribution);
|
|
33480
|
+
_this = _callSuper(this, WxEnvContribution), _this.type = "wx", _this.supportEvent = !0, _this.canvasMap = new Map(), _this.freeCanvasList = [], _this.canvasIdx = 0, _this.supportsTouchEvents = !0;
|
|
32947
33481
|
try {
|
|
32948
33482
|
_this.supportsPointerEvents = !!globalThis.PointerEvent, _this.supportsMouseEvents = !!globalThis.MouseEvent;
|
|
32949
33483
|
} catch (err) {
|
|
@@ -32952,27 +33486,11 @@
|
|
|
32952
33486
|
_this.applyStyles = !0;
|
|
32953
33487
|
return _this;
|
|
32954
33488
|
}
|
|
32955
|
-
_inherits(
|
|
32956
|
-
return _createClass(
|
|
32957
|
-
key: "getDynamicCanvasCount",
|
|
32958
|
-
value: function getDynamicCanvasCount() {
|
|
32959
|
-
return this.freeCanvasList.length;
|
|
32960
|
-
}
|
|
32961
|
-
}, {
|
|
32962
|
-
key: "getStaticCanvasCount",
|
|
32963
|
-
value: function getStaticCanvasCount() {
|
|
32964
|
-
return 9999;
|
|
32965
|
-
}
|
|
32966
|
-
}, {
|
|
32967
|
-
key: "mapToCanvasPoint",
|
|
32968
|
-
value: function mapToCanvasPoint(event) {
|
|
32969
|
-
var _a;
|
|
32970
|
-
return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
|
|
32971
|
-
}
|
|
32972
|
-
}, {
|
|
33489
|
+
_inherits(WxEnvContribution, _BaseEnvContribution);
|
|
33490
|
+
return _createClass(WxEnvContribution, [{
|
|
32973
33491
|
key: "configure",
|
|
32974
33492
|
value: function configure(service, params) {
|
|
32975
|
-
service.env === this.type
|
|
33493
|
+
if (service.env === this.type) return service.setActiveEnvContribution(this), makeUpCanvas$1(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, params.component).then(function () {});
|
|
32976
33494
|
}
|
|
32977
33495
|
}, {
|
|
32978
33496
|
key: "loadImage",
|
|
@@ -32984,27 +33502,7 @@
|
|
|
32984
33502
|
}
|
|
32985
33503
|
}, {
|
|
32986
33504
|
key: "loadSvg",
|
|
32987
|
-
value: function loadSvg(
|
|
32988
|
-
var _window = window || globalThis;
|
|
32989
|
-
if (_window.DOMParser) {
|
|
32990
|
-
var svg = new _window.DOMParser().parseFromString(svgStr, "image/svg+xml").children[0],
|
|
32991
|
-
data = new XMLSerializer().serializeToString(svg),
|
|
32992
|
-
url = "data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(data));
|
|
32993
|
-
return Promise.resolve({
|
|
32994
|
-
data: url,
|
|
32995
|
-
loadState: "success"
|
|
32996
|
-
});
|
|
32997
|
-
}
|
|
32998
|
-
if (_window.Blob) {
|
|
32999
|
-
var _data = new _window.Blob([svgStr], {
|
|
33000
|
-
type: "image/svg+xml"
|
|
33001
|
-
}),
|
|
33002
|
-
_url = _window.URL.createObjectURL(_data);
|
|
33003
|
-
return Promise.resolve({
|
|
33004
|
-
data: _url,
|
|
33005
|
-
loadState: "success"
|
|
33006
|
-
});
|
|
33007
|
-
}
|
|
33505
|
+
value: function loadSvg(url) {
|
|
33008
33506
|
return Promise.reject();
|
|
33009
33507
|
}
|
|
33010
33508
|
}, {
|
|
@@ -33022,17 +33520,21 @@
|
|
|
33022
33520
|
}, {
|
|
33023
33521
|
key: "getDevicePixelRatio",
|
|
33024
33522
|
value: function getDevicePixelRatio() {
|
|
33025
|
-
return
|
|
33523
|
+
return wx.getSystemInfoSync().pixelRatio;
|
|
33026
33524
|
}
|
|
33027
33525
|
}, {
|
|
33028
33526
|
key: "getRequestAnimationFrame",
|
|
33029
33527
|
value: function getRequestAnimationFrame() {
|
|
33030
|
-
return
|
|
33528
|
+
return function (callback) {
|
|
33529
|
+
return rafBasedSto.call(callback);
|
|
33530
|
+
};
|
|
33031
33531
|
}
|
|
33032
33532
|
}, {
|
|
33033
33533
|
key: "getCancelAnimationFrame",
|
|
33034
33534
|
value: function getCancelAnimationFrame() {
|
|
33035
|
-
return
|
|
33535
|
+
return function (h) {
|
|
33536
|
+
rafBasedSto.clear(h);
|
|
33537
|
+
};
|
|
33036
33538
|
}
|
|
33037
33539
|
}, {
|
|
33038
33540
|
key: "addEventListener",
|
|
@@ -33067,21 +33569,40 @@
|
|
|
33067
33569
|
}, {
|
|
33068
33570
|
key: "release",
|
|
33069
33571
|
value: function release() {}
|
|
33572
|
+
}, {
|
|
33573
|
+
key: "mapToCanvasPoint",
|
|
33574
|
+
value: function mapToCanvasPoint(event) {
|
|
33575
|
+
var _a;
|
|
33576
|
+
return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
|
|
33577
|
+
}
|
|
33070
33578
|
}]);
|
|
33071
33579
|
}(exports.BaseEnvContribution);
|
|
33072
|
-
|
|
33580
|
+
WxEnvContribution = __decorate$v([injectable(), __metadata$q("design:paramtypes", [])], WxEnvContribution);
|
|
33073
33581
|
|
|
33074
|
-
var
|
|
33075
|
-
|
|
33582
|
+
var wxEnvModule = new ContainerModule(function (bind) {
|
|
33583
|
+
wxEnvModule._isWxBound || (wxEnvModule._isWxBound = !0, bind(WxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(WxEnvContribution));
|
|
33076
33584
|
});
|
|
33077
|
-
|
|
33078
|
-
function
|
|
33585
|
+
wxEnvModule._isWxBound = !1;
|
|
33586
|
+
function loadWxEnv(container) {
|
|
33079
33587
|
var loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
|
|
33080
|
-
|
|
33588
|
+
loadWxEnv.__loaded || (loadWxEnv.__loaded = !0, container.load(wxEnvModule), container.load(wxCanvasModule), container.load(wxWindowModule), loadPicker && loadMathPicker(container));
|
|
33081
33589
|
}
|
|
33082
|
-
|
|
33083
|
-
function
|
|
33084
|
-
|
|
33590
|
+
loadWxEnv.__loaded = !1;
|
|
33591
|
+
function initWxEnv() {
|
|
33592
|
+
loadWxEnv(container);
|
|
33593
|
+
}
|
|
33594
|
+
|
|
33595
|
+
function loadAllEnv(container) {
|
|
33596
|
+
loadAllModule(container);
|
|
33597
|
+
}
|
|
33598
|
+
function loadAllModule(container) {
|
|
33599
|
+
loadAllModule.__loaded || (loadAllModule.__loaded = !0, loadBrowserEnv(container, !1), loadFeishuEnv(container, !1), loadLynxEnv(container, !1), loadNodeEnv(container), loadTaroEnv(container, !1), loadWxEnv(container, !1), loadCanvasPicker(container), vglobal.hooks.onSetEnv.tap("loadMathPicker", function (lastEnv, env) {
|
|
33600
|
+
"browser" !== env && loadMathPicker(container);
|
|
33601
|
+
}));
|
|
33602
|
+
}
|
|
33603
|
+
loadAllModule.__loaded = !1;
|
|
33604
|
+
function initAllEnv() {
|
|
33605
|
+
loadAllEnv(container);
|
|
33085
33606
|
}
|
|
33086
33607
|
|
|
33087
33608
|
var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
@@ -33091,23 +33612,15 @@
|
|
|
33091
33612
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
|
|
33092
33613
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
33093
33614
|
};
|
|
33094
|
-
var
|
|
33095
|
-
function
|
|
33096
|
-
_classCallCheck(this,
|
|
33097
|
-
return _callSuper(this,
|
|
33615
|
+
var TTContext2d = /*#__PURE__*/function (_FeishuContext2d) {
|
|
33616
|
+
function TTContext2d() {
|
|
33617
|
+
_classCallCheck(this, TTContext2d);
|
|
33618
|
+
return _callSuper(this, TTContext2d, arguments);
|
|
33098
33619
|
}
|
|
33099
|
-
_inherits(
|
|
33100
|
-
return _createClass(
|
|
33101
|
-
|
|
33102
|
-
|
|
33103
|
-
}, {
|
|
33104
|
-
key: "createPattern",
|
|
33105
|
-
value: function createPattern(image, repetition) {
|
|
33106
|
-
return null;
|
|
33107
|
-
}
|
|
33108
|
-
}]);
|
|
33109
|
-
}(BrowserContext2d);
|
|
33110
|
-
WxContext2d.env = "wx", WxContext2d = __decorate$u([injectable()], WxContext2d);
|
|
33620
|
+
_inherits(TTContext2d, _FeishuContext2d);
|
|
33621
|
+
return _createClass(TTContext2d);
|
|
33622
|
+
}(FeishuContext2d);
|
|
33623
|
+
TTContext2d.env = "tt", TTContext2d = __decorate$u([injectable()], TTContext2d);
|
|
33111
33624
|
|
|
33112
33625
|
var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33113
33626
|
var d,
|
|
@@ -33119,25 +33632,25 @@
|
|
|
33119
33632
|
__metadata$p = undefined && undefined.__metadata || function (k, v) {
|
|
33120
33633
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
33121
33634
|
};
|
|
33122
|
-
var
|
|
33123
|
-
function
|
|
33124
|
-
_classCallCheck(this,
|
|
33125
|
-
return _callSuper(this,
|
|
33635
|
+
var TTCanvas = /*#__PURE__*/function (_BaseCanvas) {
|
|
33636
|
+
function TTCanvas(params) {
|
|
33637
|
+
_classCallCheck(this, TTCanvas);
|
|
33638
|
+
return _callSuper(this, TTCanvas, [params]);
|
|
33126
33639
|
}
|
|
33127
|
-
_inherits(
|
|
33128
|
-
return _createClass(
|
|
33640
|
+
_inherits(TTCanvas, _BaseCanvas);
|
|
33641
|
+
return _createClass(TTCanvas, [{
|
|
33129
33642
|
key: "init",
|
|
33130
33643
|
value: function init() {
|
|
33131
|
-
this._context = new
|
|
33644
|
+
this._context = new TTContext2d(this, this._dpr);
|
|
33132
33645
|
}
|
|
33133
33646
|
}, {
|
|
33134
33647
|
key: "release",
|
|
33135
33648
|
value: function release() {}
|
|
33136
33649
|
}]);
|
|
33137
33650
|
}(exports.BaseCanvas);
|
|
33138
|
-
|
|
33651
|
+
TTCanvas.env = "tt", TTCanvas = __decorate$t([injectable(), __metadata$p("design:paramtypes", [Object])], TTCanvas);
|
|
33139
33652
|
|
|
33140
|
-
var
|
|
33653
|
+
var ttCanvasModule = createModule(TTCanvas, TTContext2d);
|
|
33141
33654
|
|
|
33142
33655
|
var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33143
33656
|
var d,
|
|
@@ -33183,15 +33696,15 @@
|
|
|
33183
33696
|
}
|
|
33184
33697
|
}]);
|
|
33185
33698
|
}();
|
|
33186
|
-
var
|
|
33187
|
-
function
|
|
33699
|
+
var TTWindowHandlerContribution = /*#__PURE__*/function (_BaseWindowHandlerCon) {
|
|
33700
|
+
function TTWindowHandlerContribution(global) {
|
|
33188
33701
|
var _this;
|
|
33189
|
-
_classCallCheck(this,
|
|
33190
|
-
_this = _callSuper(this,
|
|
33702
|
+
_classCallCheck(this, TTWindowHandlerContribution);
|
|
33703
|
+
_this = _callSuper(this, TTWindowHandlerContribution), _this.global = global, _this.type = "tt", _this.eventManager = new MiniAppEventManager();
|
|
33191
33704
|
return _this;
|
|
33192
33705
|
}
|
|
33193
|
-
_inherits(
|
|
33194
|
-
return _createClass(
|
|
33706
|
+
_inherits(TTWindowHandlerContribution, _BaseWindowHandlerCon);
|
|
33707
|
+
return _createClass(TTWindowHandlerContribution, [{
|
|
33195
33708
|
key: "container",
|
|
33196
33709
|
get: function get() {
|
|
33197
33710
|
return null;
|
|
@@ -33237,7 +33750,7 @@
|
|
|
33237
33750
|
id: Generator.GenAutoIncrementId().toString(),
|
|
33238
33751
|
canvasControled: !1
|
|
33239
33752
|
};
|
|
33240
|
-
this.canvas = new
|
|
33753
|
+
this.canvas = new TTCanvas(options);
|
|
33241
33754
|
}
|
|
33242
33755
|
}, {
|
|
33243
33756
|
key: "createWindowByCanvas",
|
|
@@ -33253,7 +33766,7 @@
|
|
|
33253
33766
|
width = data.width, height = data.height;
|
|
33254
33767
|
}
|
|
33255
33768
|
var dpr = params.dpr;
|
|
33256
|
-
null == dpr && (dpr = canvas.width / width), this.canvas = new
|
|
33769
|
+
null == dpr && (dpr = canvas.width / width), this.canvas = new TTCanvas({
|
|
33257
33770
|
width: width,
|
|
33258
33771
|
height: height,
|
|
33259
33772
|
dpr: dpr,
|
|
@@ -33300,9 +33813,8 @@
|
|
|
33300
33813
|
}, {
|
|
33301
33814
|
key: "dispatchEvent",
|
|
33302
33815
|
value: function dispatchEvent(event) {
|
|
33303
|
-
var _a, _b, _c, _d;
|
|
33304
33816
|
var type = event.type;
|
|
33305
|
-
return !!this.eventManager.cache[type] && (event.changedTouches && event.changedTouches[0] && (event.offsetX = event.changedTouches[0].x, event.changedTouches[0].offsetX =
|
|
33817
|
+
return !!this.eventManager.cache[type] && (event.changedTouches && event.changedTouches[0] && (event.offsetX = event.changedTouches[0].x, event.changedTouches[0].offsetX = event.changedTouches[0].x, event.changedTouches[0].clientX = event.changedTouches[0].x, event.offsetY = event.changedTouches[0].y, event.changedTouches[0].offsetY = event.changedTouches[0].y, event.changedTouches[0].clientY = event.changedTouches[0].y), event.preventDefault = function () {}, event.stopPropagation = function () {}, this.eventManager.cache[type].listener && this.eventManager.cache[type].listener.forEach(function (f) {
|
|
33306
33818
|
f(event);
|
|
33307
33819
|
}), !0);
|
|
33308
33820
|
}
|
|
@@ -33339,11 +33851,11 @@
|
|
|
33339
33851
|
}
|
|
33340
33852
|
}]);
|
|
33341
33853
|
}(exports.BaseWindowHandlerContribution);
|
|
33342
|
-
|
|
33343
|
-
var
|
|
33344
|
-
bind(
|
|
33345
|
-
return ctx.container.get(
|
|
33346
|
-
}).whenTargetNamed(
|
|
33854
|
+
TTWindowHandlerContribution.env = "tt", TTWindowHandlerContribution = __decorate$s([injectable(), __param$n(0, inject(VGlobal)), __metadata$o("design:paramtypes", [Object])], TTWindowHandlerContribution);
|
|
33855
|
+
var ttWindowModule = new ContainerModule(function (bind) {
|
|
33856
|
+
bind(TTWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(function (ctx) {
|
|
33857
|
+
return ctx.container.get(TTWindowHandlerContribution);
|
|
33858
|
+
}).whenTargetNamed(TTWindowHandlerContribution.env);
|
|
33347
33859
|
});
|
|
33348
33860
|
|
|
33349
33861
|
var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
@@ -33387,7 +33899,7 @@
|
|
|
33387
33899
|
return _regeneratorRuntime().wrap(function _callee$(_context2) {
|
|
33388
33900
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33389
33901
|
case 0:
|
|
33390
|
-
dpr =
|
|
33902
|
+
dpr = tt.getSystemInfoSync().pixelRatio;
|
|
33391
33903
|
_loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop(i) {
|
|
33392
33904
|
var id;
|
|
33393
33905
|
return _regeneratorRuntime().wrap(function _loop$(_context) {
|
|
@@ -33396,15 +33908,11 @@
|
|
|
33396
33908
|
id = canvasIdLists[i];
|
|
33397
33909
|
_context.next = 3;
|
|
33398
33910
|
return new Promise(function (resolve) {
|
|
33399
|
-
var data =
|
|
33400
|
-
component && (data = data["in"](component)), data.select("#".concat(id)).
|
|
33401
|
-
node: !0,
|
|
33402
|
-
size: !0
|
|
33403
|
-
}).exec(function (res) {
|
|
33404
|
-
if (!res[0]) return;
|
|
33911
|
+
var data = tt.createSelectorQuery();
|
|
33912
|
+
component && (data = data["in"](component)), data.select("#".concat(id)).node().exec(function (res) {
|
|
33405
33913
|
var canvas = res[0].node,
|
|
33406
|
-
width =
|
|
33407
|
-
height =
|
|
33914
|
+
width = canvas.width,
|
|
33915
|
+
height = canvas.height;
|
|
33408
33916
|
canvas.width = width * dpr, canvas.height = height * dpr, canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas), resolve(null);
|
|
33409
33917
|
});
|
|
33410
33918
|
});
|
|
@@ -33432,11 +33940,11 @@
|
|
|
33432
33940
|
}, _callee);
|
|
33433
33941
|
}));
|
|
33434
33942
|
}
|
|
33435
|
-
var
|
|
33436
|
-
function
|
|
33943
|
+
var TTEnvContribution = /*#__PURE__*/function (_BaseEnvContribution) {
|
|
33944
|
+
function TTEnvContribution() {
|
|
33437
33945
|
var _this;
|
|
33438
|
-
_classCallCheck(this,
|
|
33439
|
-
_this = _callSuper(this,
|
|
33946
|
+
_classCallCheck(this, TTEnvContribution);
|
|
33947
|
+
_this = _callSuper(this, TTEnvContribution), _this.type = "tt", _this.supportEvent = !0, _this.canvasMap = new Map(), _this.freeCanvasList = [], _this.canvasIdx = 0, _this.supportsTouchEvents = !0;
|
|
33440
33948
|
try {
|
|
33441
33949
|
_this.supportsPointerEvents = !!globalThis.PointerEvent, _this.supportsMouseEvents = !!globalThis.MouseEvent;
|
|
33442
33950
|
} catch (err) {
|
|
@@ -33445,8 +33953,8 @@
|
|
|
33445
33953
|
_this.applyStyles = !0;
|
|
33446
33954
|
return _this;
|
|
33447
33955
|
}
|
|
33448
|
-
_inherits(
|
|
33449
|
-
return _createClass(
|
|
33956
|
+
_inherits(TTEnvContribution, _BaseEnvContribution);
|
|
33957
|
+
return _createClass(TTEnvContribution, [{
|
|
33450
33958
|
key: "configure",
|
|
33451
33959
|
value: function configure(service, params) {
|
|
33452
33960
|
if (service.env === this.type) return service.setActiveEnvContribution(this), makeUpCanvas(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, params.component).then(function () {});
|
|
@@ -33479,7 +33987,7 @@
|
|
|
33479
33987
|
}, {
|
|
33480
33988
|
key: "getDevicePixelRatio",
|
|
33481
33989
|
value: function getDevicePixelRatio() {
|
|
33482
|
-
return
|
|
33990
|
+
return tt.getSystemInfoSync().pixelRatio;
|
|
33483
33991
|
}
|
|
33484
33992
|
}, {
|
|
33485
33993
|
key: "getRequestAnimationFrame",
|
|
@@ -33536,32 +34044,19 @@
|
|
|
33536
34044
|
}
|
|
33537
34045
|
}]);
|
|
33538
34046
|
}(exports.BaseEnvContribution);
|
|
33539
|
-
|
|
34047
|
+
TTEnvContribution = __decorate$r([injectable(), __metadata$n("design:paramtypes", [])], TTEnvContribution);
|
|
33540
34048
|
|
|
33541
|
-
var
|
|
33542
|
-
|
|
34049
|
+
var ttEnvModule = new ContainerModule(function (bind) {
|
|
34050
|
+
ttEnvModule.isTTBound || (ttEnvModule.isTTBound = !0, bind(TTEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TTEnvContribution));
|
|
33543
34051
|
});
|
|
33544
|
-
|
|
33545
|
-
function
|
|
34052
|
+
ttEnvModule.isTTBound = !1;
|
|
34053
|
+
function loadTTEnv(container) {
|
|
33546
34054
|
var loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
|
|
33547
|
-
|
|
34055
|
+
loadTTEnv.__loaded || (loadTTEnv.__loaded = !0, container.load(ttEnvModule), container.load(ttCanvasModule), container.load(ttWindowModule), loadPicker && loadMathPicker(container));
|
|
33548
34056
|
}
|
|
33549
|
-
|
|
33550
|
-
function
|
|
33551
|
-
|
|
33552
|
-
}
|
|
33553
|
-
|
|
33554
|
-
function loadAllEnv(container) {
|
|
33555
|
-
loadAllModule(container);
|
|
33556
|
-
}
|
|
33557
|
-
function loadAllModule(container) {
|
|
33558
|
-
loadAllModule.__loaded || (loadAllModule.__loaded = !0, loadBrowserEnv(container, !1), loadFeishuEnv(container, !1), loadLynxEnv(container, !1), loadNodeEnv(container), loadTaroEnv(container, !1), loadWxEnv(container, !1), loadCanvasPicker(container), vglobal.hooks.onSetEnv.tap("loadMathPicker", function (lastEnv, env) {
|
|
33559
|
-
"browser" !== env && loadMathPicker(container);
|
|
33560
|
-
}));
|
|
33561
|
-
}
|
|
33562
|
-
loadAllModule.__loaded = !1;
|
|
33563
|
-
function initAllEnv() {
|
|
33564
|
-
loadAllEnv(container);
|
|
34057
|
+
loadTTEnv.__loaded = !1;
|
|
34058
|
+
function initTTEnv() {
|
|
34059
|
+
loadTTEnv(container);
|
|
33565
34060
|
}
|
|
33566
34061
|
|
|
33567
34062
|
var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
@@ -35137,7 +35632,7 @@
|
|
|
35137
35632
|
|
|
35138
35633
|
var roughModule = _roughModule;
|
|
35139
35634
|
|
|
35140
|
-
const version = "0.19.
|
|
35635
|
+
const version = "0.19.2";
|
|
35141
35636
|
preLoadAllModule();
|
|
35142
35637
|
if (isBrowserEnv()) {
|
|
35143
35638
|
loadBrowserEnv(container);
|
|
@@ -35189,8 +35684,25 @@
|
|
|
35189
35684
|
exports.BoundsPicker = BoundsPicker;
|
|
35190
35685
|
exports.CIRCLE_NUMBER_TYPE = CIRCLE_NUMBER_TYPE;
|
|
35191
35686
|
exports.Canvas3DDrawItemInterceptor = Canvas3DDrawItemInterceptor;
|
|
35687
|
+
exports.CanvasArc3dPicker = CanvasArc3dPicker;
|
|
35688
|
+
exports.CanvasArcPicker = CanvasArcPicker;
|
|
35689
|
+
exports.CanvasAreaPicker = CanvasAreaPicker;
|
|
35690
|
+
exports.CanvasCirclePicker = CanvasCirclePicker;
|
|
35192
35691
|
exports.CanvasFactory = CanvasFactory;
|
|
35692
|
+
exports.CanvasGlyphPicker = CanvasGlyphPicker;
|
|
35693
|
+
exports.CanvasGroupPicker = CanvasGroupPicker;
|
|
35694
|
+
exports.CanvasImagePicker = CanvasImagePicker;
|
|
35695
|
+
exports.CanvasLinePicker = CanvasLinePicker;
|
|
35696
|
+
exports.CanvasPathPicker = CanvasPathPicker;
|
|
35697
|
+
exports.CanvasPickerContribution = CanvasPickerContribution;
|
|
35698
|
+
exports.CanvasPolygonPicker = CanvasPolygonPicker;
|
|
35699
|
+
exports.CanvasPyramid3dPicker = CanvasPyramid3dPicker;
|
|
35700
|
+
exports.CanvasRect3dPicker = CanvasRect3dPicker;
|
|
35701
|
+
exports.CanvasRectPicker = CanvasRectPicker;
|
|
35702
|
+
exports.CanvasRichTextPicker = CanvasRichTextPicker;
|
|
35703
|
+
exports.CanvasSymbolPicker = CanvasSymbolPicker;
|
|
35193
35704
|
exports.CanvasTextLayout = CanvasTextLayout;
|
|
35705
|
+
exports.CanvasTextPicker = CanvasTextPicker;
|
|
35194
35706
|
exports.CbAnimate = CbAnimate;
|
|
35195
35707
|
exports.Circle = Circle;
|
|
35196
35708
|
exports.CircleRender = CircleRender;
|
|
@@ -35315,6 +35827,18 @@
|
|
|
35315
35827
|
exports.ManualTickHandler = ManualTickHandler;
|
|
35316
35828
|
exports.ManualTicker = ManualTicker;
|
|
35317
35829
|
exports.Mat4Allocate = Mat4Allocate;
|
|
35830
|
+
exports.MathArcPicker = MathArcPicker;
|
|
35831
|
+
exports.MathAreaPicker = MathAreaPicker;
|
|
35832
|
+
exports.MathCirclePicker = MathCirclePicker;
|
|
35833
|
+
exports.MathGlyphPicker = MathGlyphPicker;
|
|
35834
|
+
exports.MathImagePicker = MathImagePicker;
|
|
35835
|
+
exports.MathLinePicker = MathLinePicker;
|
|
35836
|
+
exports.MathPathPicker = MathPathPicker;
|
|
35837
|
+
exports.MathPickerContribution = MathPickerContribution;
|
|
35838
|
+
exports.MathPolygonPicker = MathPolygonPicker;
|
|
35839
|
+
exports.MathRectPicker = MathRectPicker;
|
|
35840
|
+
exports.MathSymbolPicker = MathSymbolPicker;
|
|
35841
|
+
exports.MathTextPicker = MathTextPicker;
|
|
35318
35842
|
exports.MatrixAllocate = MatrixAllocate;
|
|
35319
35843
|
exports.Meteor = Meteor;
|
|
35320
35844
|
exports.MonotoneX = MonotoneX;
|
|
@@ -35555,6 +36079,7 @@
|
|
|
35555
36079
|
exports.initFeishuEnv = initFeishuEnv;
|
|
35556
36080
|
exports.initLynxEnv = initLynxEnv;
|
|
35557
36081
|
exports.initNodeEnv = initNodeEnv;
|
|
36082
|
+
exports.initTTEnv = initTTEnv;
|
|
35558
36083
|
exports.initTaroEnv = initTaroEnv;
|
|
35559
36084
|
exports.initWxEnv = initWxEnv;
|
|
35560
36085
|
exports.inject = inject;
|
|
@@ -35581,6 +36106,7 @@
|
|
|
35581
36106
|
exports.loadFeishuEnv = loadFeishuEnv;
|
|
35582
36107
|
exports.loadLynxEnv = loadLynxEnv;
|
|
35583
36108
|
exports.loadNodeEnv = loadNodeEnv;
|
|
36109
|
+
exports.loadTTEnv = loadTTEnv;
|
|
35584
36110
|
exports.loadTaroEnv = loadTaroEnv;
|
|
35585
36111
|
exports.loadWxEnv = loadWxEnv;
|
|
35586
36112
|
exports.lookAt = lookAt;
|
|
@@ -35702,6 +36228,7 @@
|
|
|
35702
36228
|
exports.transformMat4 = transformMat4;
|
|
35703
36229
|
exports.transformUtil = transformUtil;
|
|
35704
36230
|
exports.translate = translate;
|
|
36231
|
+
exports.ttEnvModule = ttEnvModule;
|
|
35705
36232
|
exports.version = version;
|
|
35706
36233
|
exports.verticalLayout = verticalLayout;
|
|
35707
36234
|
exports.vglobal = vglobal;
|