@visactor/vrender 0.19.1 → 0.19.3
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 +997 -466
- 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 +3 -3
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;
|
|
@@ -5261,7 +5261,8 @@
|
|
|
5261
5261
|
flexWrap: "wrap",
|
|
5262
5262
|
justifyContent: "flex-start",
|
|
5263
5263
|
alignItems: "flex-start",
|
|
5264
|
-
alignContent: "flex-start"
|
|
5264
|
+
alignContent: "flex-start",
|
|
5265
|
+
baseOpacity: 1
|
|
5265
5266
|
});
|
|
5266
5267
|
var DefaultGlyphAttribute = Object.assign(Object.assign({}, DefaultAttribute), {
|
|
5267
5268
|
path: "",
|
|
@@ -5481,7 +5482,7 @@
|
|
|
5481
5482
|
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
5483
|
}
|
|
5483
5484
|
|
|
5484
|
-
var __decorate$
|
|
5485
|
+
var __decorate$1G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
5485
5486
|
var d,
|
|
5486
5487
|
c = arguments.length,
|
|
5487
5488
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -5790,9 +5791,9 @@
|
|
|
5790
5791
|
}
|
|
5791
5792
|
}]);
|
|
5792
5793
|
}();
|
|
5793
|
-
ATextMeasure = __decorate$
|
|
5794
|
+
ATextMeasure = __decorate$1G([injectable()], ATextMeasure);
|
|
5794
5795
|
|
|
5795
|
-
var __decorate$
|
|
5796
|
+
var __decorate$1F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
5796
5797
|
var d,
|
|
5797
5798
|
c = arguments.length,
|
|
5798
5799
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -5808,7 +5809,7 @@
|
|
|
5808
5809
|
_inherits(DefaultTextMeasureContribution, _ATextMeasure);
|
|
5809
5810
|
return _createClass(DefaultTextMeasureContribution);
|
|
5810
5811
|
}(ATextMeasure);
|
|
5811
|
-
exports.DefaultTextMeasureContribution = __decorate$
|
|
5812
|
+
exports.DefaultTextMeasureContribution = __decorate$1F([injectable()], exports.DefaultTextMeasureContribution);
|
|
5812
5813
|
|
|
5813
5814
|
var container = new Container();
|
|
5814
5815
|
|
|
@@ -6247,14 +6248,14 @@
|
|
|
6247
6248
|
}();
|
|
6248
6249
|
var canvasAllocate = new DefaultCanvasAllocate();
|
|
6249
6250
|
|
|
6250
|
-
var __decorate$
|
|
6251
|
+
var __decorate$1E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
6251
6252
|
var d,
|
|
6252
6253
|
c = arguments.length,
|
|
6253
6254
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
6254
6255
|
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
6256
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6256
6257
|
},
|
|
6257
|
-
__metadata$
|
|
6258
|
+
__metadata$1g = undefined && undefined.__metadata || function (k, v) {
|
|
6258
6259
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
6259
6260
|
};
|
|
6260
6261
|
var VWindow = Symbol["for"]("VWindow");
|
|
@@ -6452,19 +6453,19 @@
|
|
|
6452
6453
|
}
|
|
6453
6454
|
}]);
|
|
6454
6455
|
}();
|
|
6455
|
-
exports.DefaultWindow = __decorate$
|
|
6456
|
+
exports.DefaultWindow = __decorate$1E([injectable(), __metadata$1g("design:paramtypes", [])], exports.DefaultWindow);
|
|
6456
6457
|
|
|
6457
|
-
var __decorate$
|
|
6458
|
+
var __decorate$1D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
6458
6459
|
var d,
|
|
6459
6460
|
c = arguments.length,
|
|
6460
6461
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
6461
6462
|
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
6463
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6463
6464
|
},
|
|
6464
|
-
__metadata$
|
|
6465
|
+
__metadata$1f = undefined && undefined.__metadata || function (k, v) {
|
|
6465
6466
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
6466
6467
|
},
|
|
6467
|
-
__param$
|
|
6468
|
+
__param$R = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
6468
6469
|
return function (target, key) {
|
|
6469
6470
|
decorator(target, key, paramIndex);
|
|
6470
6471
|
};
|
|
@@ -6584,7 +6585,7 @@
|
|
|
6584
6585
|
}
|
|
6585
6586
|
}]);
|
|
6586
6587
|
}();
|
|
6587
|
-
exports.DefaultGraphicUtil = __decorate$
|
|
6588
|
+
exports.DefaultGraphicUtil = __decorate$1D([injectable(), __param$R(0, inject(ContributionProvider)), __param$R(0, named(TextMeasureContribution)), __metadata$1f("design:paramtypes", [Object])], exports.DefaultGraphicUtil);
|
|
6588
6589
|
var TransformMode;
|
|
6589
6590
|
!function (TransformMode) {
|
|
6590
6591
|
TransformMode[TransformMode.transform = 0] = "transform", TransformMode[TransformMode.matrix = 1] = "matrix";
|
|
@@ -6660,7 +6661,7 @@
|
|
|
6660
6661
|
}
|
|
6661
6662
|
}]);
|
|
6662
6663
|
}();
|
|
6663
|
-
exports.DefaultTransformUtil = __decorate$
|
|
6664
|
+
exports.DefaultTransformUtil = __decorate$1D([injectable(), __metadata$1f("design:paramtypes", [])], exports.DefaultTransformUtil);
|
|
6664
6665
|
|
|
6665
6666
|
var defaultThemeObj = {
|
|
6666
6667
|
arc: DefaultArcAttribute,
|
|
@@ -6794,7 +6795,7 @@
|
|
|
6794
6795
|
return null;
|
|
6795
6796
|
}
|
|
6796
6797
|
|
|
6797
|
-
var __awaiter$
|
|
6798
|
+
var __awaiter$5 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
6798
6799
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
6799
6800
|
function fulfilled(value) {
|
|
6800
6801
|
try {
|
|
@@ -6886,7 +6887,7 @@
|
|
|
6886
6887
|
key: "forEachChildrenAsync",
|
|
6887
6888
|
value: function forEachChildrenAsync(cb) {
|
|
6888
6889
|
var reverse = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !1;
|
|
6889
|
-
return __awaiter$
|
|
6890
|
+
return __awaiter$5(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6890
6891
|
var child, i, breakTag, _child2, _i2, _breakTag;
|
|
6891
6892
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6892
6893
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -7395,7 +7396,23 @@
|
|
|
7395
7396
|
}, {
|
|
7396
7397
|
key: "composedPath",
|
|
7397
7398
|
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;
|
|
7399
|
+
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;
|
|
7400
|
+
}
|
|
7401
|
+
}, {
|
|
7402
|
+
key: "composedDetailPath",
|
|
7403
|
+
value: function composedDetailPath() {
|
|
7404
|
+
this.pickParams && this.pickParams.graphic && (this.detailPath = this.path.slice(), this._composedDetailPath(this.pickParams));
|
|
7405
|
+
}
|
|
7406
|
+
}, {
|
|
7407
|
+
key: "_composedDetailPath",
|
|
7408
|
+
value: function _composedDetailPath(params) {
|
|
7409
|
+
if (params && params.graphic) {
|
|
7410
|
+
var g = this.pickParams.graphic;
|
|
7411
|
+
if (g.stage) {
|
|
7412
|
+
var path = g.stage.eventSystem.manager.propagationPath(g);
|
|
7413
|
+
this.detailPath.push(path), this._composedDetailPath(params.params);
|
|
7414
|
+
}
|
|
7415
|
+
}
|
|
7399
7416
|
}
|
|
7400
7417
|
}, {
|
|
7401
7418
|
key: "preventDefault",
|
|
@@ -7581,7 +7598,7 @@
|
|
|
7581
7598
|
function EventManager(root, config) {
|
|
7582
7599
|
var _this = this;
|
|
7583
7600
|
_classCallCheck(this, EventManager);
|
|
7584
|
-
this.dispatch = new EventEmitter(), this.cursorTarget = null, this.mappingState = {
|
|
7601
|
+
this.dispatch = new EventEmitter(), this.cursorTarget = null, this.pauseNotify = !1, this.mappingState = {
|
|
7585
7602
|
trackingData: {}
|
|
7586
7603
|
}, this.eventPool = new Map(), this.onPointerDown = function (from, target) {
|
|
7587
7604
|
if (!(from instanceof FederatedPointerEvent)) return void Logger.getInstance().warn("EventManager cannot map a non-pointer event as a pointer event");
|
|
@@ -7753,6 +7770,7 @@
|
|
|
7753
7770
|
}, {
|
|
7754
7771
|
key: "notifyTarget",
|
|
7755
7772
|
value: function notifyTarget(e, type) {
|
|
7773
|
+
if (this.pauseNotify) return;
|
|
7756
7774
|
type = null != type ? type : e.type;
|
|
7757
7775
|
var key = e.eventPhase === e.CAPTURING_PHASE || e.eventPhase === e.AT_TARGET ? "".concat(type, "capture") : type;
|
|
7758
7776
|
this.notifyListeners(e, key), e.eventPhase === e.AT_TARGET && this.notifyListeners(e, type);
|
|
@@ -7868,7 +7886,7 @@
|
|
|
7868
7886
|
dispatchEvent: function dispatchEvent(e) {
|
|
7869
7887
|
var _a;
|
|
7870
7888
|
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;
|
|
7889
|
+
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
7890
|
},
|
|
7873
7891
|
emit: function emit(eventName, object) {
|
|
7874
7892
|
return this.dispatchEvent(new CustomEvent(eventName, object));
|
|
@@ -8074,6 +8092,16 @@
|
|
|
8074
8092
|
nativeEvent.composedPath && nativeEvent.composedPath().length > 0 && (target = nativeEvent.composedPath()[0]);
|
|
8075
8093
|
return target !== (this.domElement.getNativeHandler ? this.domElement.getNativeHandler().nativeCanvas : this.domElement);
|
|
8076
8094
|
}
|
|
8095
|
+
}, {
|
|
8096
|
+
key: "pauseTriggerEvent",
|
|
8097
|
+
value: function pauseTriggerEvent() {
|
|
8098
|
+
this.manager.pauseNotify = !0;
|
|
8099
|
+
}
|
|
8100
|
+
}, {
|
|
8101
|
+
key: "resumeTriggerEvent",
|
|
8102
|
+
value: function resumeTriggerEvent() {
|
|
8103
|
+
this.manager.pauseNotify = !1;
|
|
8104
|
+
}
|
|
8077
8105
|
}]);
|
|
8078
8106
|
}();
|
|
8079
8107
|
|
|
@@ -12557,7 +12585,7 @@
|
|
|
12557
12585
|
return str.startsWith("<");
|
|
12558
12586
|
}
|
|
12559
12587
|
|
|
12560
|
-
var __awaiter$
|
|
12588
|
+
var __awaiter$4 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
12561
12589
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
12562
12590
|
function fulfilled(value) {
|
|
12563
12591
|
try {
|
|
@@ -12586,7 +12614,7 @@
|
|
|
12586
12614
|
group.incrementalAppendChild(graphic);
|
|
12587
12615
|
}
|
|
12588
12616
|
function waitForAllSubLayers(stage) {
|
|
12589
|
-
return __awaiter$
|
|
12617
|
+
return __awaiter$4(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
12590
12618
|
var promiseList, layers;
|
|
12591
12619
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
12592
12620
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -13189,14 +13217,14 @@
|
|
|
13189
13217
|
var VirtualLayerHandlerContribution = Symbol["for"]("VirtualLayerHandlerContribution");
|
|
13190
13218
|
|
|
13191
13219
|
var _DefaultLayerService_,
|
|
13192
|
-
__decorate$
|
|
13220
|
+
__decorate$1C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
13193
13221
|
var d,
|
|
13194
13222
|
c = arguments.length,
|
|
13195
13223
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
13196
13224
|
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
13225
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13198
13226
|
},
|
|
13199
|
-
__metadata$
|
|
13227
|
+
__metadata$1e = undefined && undefined.__metadata || function (k, v) {
|
|
13200
13228
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
13201
13229
|
};
|
|
13202
13230
|
exports.DefaultLayerService = _DefaultLayerService_ = /*#__PURE__*/function () {
|
|
@@ -13286,7 +13314,7 @@
|
|
|
13286
13314
|
}
|
|
13287
13315
|
}]);
|
|
13288
13316
|
}();
|
|
13289
|
-
exports.DefaultLayerService.idprefix = "visactor_layer", exports.DefaultLayerService.prefix_count = 0, exports.DefaultLayerService = _DefaultLayerService_ = __decorate$
|
|
13317
|
+
exports.DefaultLayerService.idprefix = "visactor_layer", exports.DefaultLayerService.prefix_count = 0, exports.DefaultLayerService = _DefaultLayerService_ = __decorate$1C([injectable(), __metadata$1e("design:paramtypes", [])], exports.DefaultLayerService);
|
|
13290
13318
|
|
|
13291
13319
|
var coreModule = new ContainerModule(function (bind) {
|
|
13292
13320
|
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 +17524,17 @@
|
|
|
17496
17524
|
var matrixAllocate = new DefaultMatrixAllocate();
|
|
17497
17525
|
var mat4Allocate = new DefaultMat4Allocate();
|
|
17498
17526
|
|
|
17499
|
-
var __decorate$
|
|
17527
|
+
var __decorate$1B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
17500
17528
|
var d,
|
|
17501
17529
|
c = arguments.length,
|
|
17502
17530
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
17503
17531
|
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
17532
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
17505
17533
|
},
|
|
17506
|
-
__metadata$
|
|
17534
|
+
__metadata$1d = undefined && undefined.__metadata || function (k, v) {
|
|
17507
17535
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
17508
17536
|
},
|
|
17509
|
-
__param$
|
|
17537
|
+
__param$Q = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
17510
17538
|
return function (target, key) {
|
|
17511
17539
|
decorator(target, key, paramIndex);
|
|
17512
17540
|
};
|
|
@@ -18242,7 +18270,7 @@
|
|
|
18242
18270
|
}
|
|
18243
18271
|
}]);
|
|
18244
18272
|
}();
|
|
18245
|
-
exports.DefaultGraphicService = __decorate$
|
|
18273
|
+
exports.DefaultGraphicService = __decorate$1B([injectable(), __param$Q(0, inject(GraphicCreator$1)), __metadata$1d("design:paramtypes", [Object])], exports.DefaultGraphicService);
|
|
18246
18274
|
|
|
18247
18275
|
var GraphicCreator = /*#__PURE__*/function () {
|
|
18248
18276
|
function GraphicCreator() {
|
|
@@ -18783,17 +18811,17 @@
|
|
|
18783
18811
|
}), canvasGradient.GetPattern(w + x, h + y, undefined);
|
|
18784
18812
|
}
|
|
18785
18813
|
|
|
18786
|
-
var __decorate$
|
|
18814
|
+
var __decorate$1A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
18787
18815
|
var d,
|
|
18788
18816
|
c = arguments.length,
|
|
18789
18817
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
18790
18818
|
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
18819
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
18792
18820
|
},
|
|
18793
|
-
__metadata$
|
|
18821
|
+
__metadata$1c = undefined && undefined.__metadata || function (k, v) {
|
|
18794
18822
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
18795
18823
|
},
|
|
18796
|
-
__param$
|
|
18824
|
+
__param$P = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
18797
18825
|
return function (target, key) {
|
|
18798
18826
|
decorator(target, key, paramIndex);
|
|
18799
18827
|
};
|
|
@@ -18881,7 +18909,7 @@
|
|
|
18881
18909
|
}
|
|
18882
18910
|
}]);
|
|
18883
18911
|
}();
|
|
18884
|
-
exports.DefaultBaseInteractiveRenderContribution = __decorate$
|
|
18912
|
+
exports.DefaultBaseInteractiveRenderContribution = __decorate$1A([injectable(), __param$P(0, inject(ContributionProvider)), __param$P(0, named(InteractiveSubRenderContribution)), __metadata$1c("design:paramtypes", [Object])], exports.DefaultBaseInteractiveRenderContribution);
|
|
18885
18913
|
|
|
18886
18914
|
var DefaultBaseTextureRenderContribution = /*#__PURE__*/function () {
|
|
18887
18915
|
function DefaultBaseTextureRenderContribution() {
|
|
@@ -19333,7 +19361,7 @@
|
|
|
19333
19361
|
}
|
|
19334
19362
|
var defaultImageBackgroundRenderContribution = new DefaultImageBackgroundRenderContribution();
|
|
19335
19363
|
|
|
19336
|
-
var __decorate$
|
|
19364
|
+
var __decorate$1z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19337
19365
|
var d,
|
|
19338
19366
|
c = arguments.length,
|
|
19339
19367
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -19422,7 +19450,7 @@
|
|
|
19422
19450
|
}
|
|
19423
19451
|
}]);
|
|
19424
19452
|
}();
|
|
19425
|
-
exports.SplitRectBeforeRenderContribution = __decorate$
|
|
19453
|
+
exports.SplitRectBeforeRenderContribution = __decorate$1z([injectable()], exports.SplitRectBeforeRenderContribution);
|
|
19426
19454
|
exports.SplitRectAfterRenderContribution = /*#__PURE__*/function () {
|
|
19427
19455
|
function SplitRectAfterRenderContribution() {
|
|
19428
19456
|
_classCallCheck(this, SplitRectAfterRenderContribution);
|
|
@@ -19455,7 +19483,7 @@
|
|
|
19455
19483
|
}
|
|
19456
19484
|
}]);
|
|
19457
19485
|
}();
|
|
19458
|
-
exports.SplitRectAfterRenderContribution = __decorate$
|
|
19486
|
+
exports.SplitRectAfterRenderContribution = __decorate$1z([injectable()], exports.SplitRectAfterRenderContribution);
|
|
19459
19487
|
var defaultRectRenderContribution = new DefaultRectRenderContribution();
|
|
19460
19488
|
var defaultRectTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
19461
19489
|
var defaultRectBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
@@ -19545,17 +19573,17 @@
|
|
|
19545
19573
|
}]);
|
|
19546
19574
|
}(DefaultBaseTextureRenderContribution);
|
|
19547
19575
|
|
|
19548
|
-
var __decorate$
|
|
19576
|
+
var __decorate$1y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19549
19577
|
var d,
|
|
19550
19578
|
c = arguments.length,
|
|
19551
19579
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
19552
19580
|
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
19581
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19554
19582
|
},
|
|
19555
|
-
__metadata$
|
|
19583
|
+
__metadata$1b = undefined && undefined.__metadata || function (k, v) {
|
|
19556
19584
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
19557
19585
|
},
|
|
19558
|
-
__param$
|
|
19586
|
+
__param$O = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
19559
19587
|
return function (target, key) {
|
|
19560
19588
|
decorator(target, key, paramIndex);
|
|
19561
19589
|
};
|
|
@@ -19729,19 +19757,19 @@
|
|
|
19729
19757
|
}
|
|
19730
19758
|
}]);
|
|
19731
19759
|
}(BaseRender);
|
|
19732
|
-
exports.DefaultCanvasArcRender = __decorate$
|
|
19760
|
+
exports.DefaultCanvasArcRender = __decorate$1y([injectable(), __param$O(0, inject(ContributionProvider)), __param$O(0, named(ArcRenderContribution)), __metadata$1b("design:paramtypes", [Object])], exports.DefaultCanvasArcRender);
|
|
19733
19761
|
|
|
19734
|
-
var __decorate$
|
|
19762
|
+
var __decorate$1x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19735
19763
|
var d,
|
|
19736
19764
|
c = arguments.length,
|
|
19737
19765
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
19738
19766
|
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
19767
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19740
19768
|
},
|
|
19741
|
-
__metadata$
|
|
19769
|
+
__metadata$1a = undefined && undefined.__metadata || function (k, v) {
|
|
19742
19770
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
19743
19771
|
},
|
|
19744
|
-
__param$
|
|
19772
|
+
__param$N = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
19745
19773
|
return function (target, key) {
|
|
19746
19774
|
decorator(target, key, paramIndex);
|
|
19747
19775
|
};
|
|
@@ -19785,7 +19813,7 @@
|
|
|
19785
19813
|
}
|
|
19786
19814
|
}]);
|
|
19787
19815
|
}(BaseRender);
|
|
19788
|
-
exports.DefaultCanvasCircleRender = __decorate$
|
|
19816
|
+
exports.DefaultCanvasCircleRender = __decorate$1x([injectable(), __param$N(0, inject(ContributionProvider)), __param$N(0, named(CircleRenderContribution)), __metadata$1a("design:paramtypes", [Object])], exports.DefaultCanvasCircleRender);
|
|
19789
19817
|
|
|
19790
19818
|
function drawSegItem(ctx, curve, endPercent, params) {
|
|
19791
19819
|
if (!curve.p1) return;
|
|
@@ -19926,7 +19954,7 @@
|
|
|
19926
19954
|
});
|
|
19927
19955
|
}
|
|
19928
19956
|
|
|
19929
|
-
var __decorate$
|
|
19957
|
+
var __decorate$1w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
19930
19958
|
var d,
|
|
19931
19959
|
c = arguments.length,
|
|
19932
19960
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -20108,7 +20136,7 @@
|
|
|
20108
20136
|
}
|
|
20109
20137
|
}]);
|
|
20110
20138
|
}(BaseRender);
|
|
20111
|
-
exports.DefaultCanvasLineRender = __decorate$
|
|
20139
|
+
exports.DefaultCanvasLineRender = __decorate$1w([injectable()], exports.DefaultCanvasLineRender);
|
|
20112
20140
|
|
|
20113
20141
|
function drawAreaSegments(path, segPath, percent, params) {
|
|
20114
20142
|
var _a;
|
|
@@ -20234,17 +20262,17 @@
|
|
|
20234
20262
|
var defaultAreaTextureRenderContribution = new DefaultAreaTextureRenderContribution();
|
|
20235
20263
|
var defaultAreaBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
20236
20264
|
|
|
20237
|
-
var __decorate$
|
|
20265
|
+
var __decorate$1v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20238
20266
|
var d,
|
|
20239
20267
|
c = arguments.length,
|
|
20240
20268
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20241
20269
|
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
20270
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20243
20271
|
},
|
|
20244
|
-
__metadata$
|
|
20272
|
+
__metadata$19 = undefined && undefined.__metadata || function (k, v) {
|
|
20245
20273
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
20246
20274
|
},
|
|
20247
|
-
__param$
|
|
20275
|
+
__param$M = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
20248
20276
|
return function (target, key) {
|
|
20249
20277
|
decorator(target, key, paramIndex);
|
|
20250
20278
|
};
|
|
@@ -20519,22 +20547,22 @@
|
|
|
20519
20547
|
}
|
|
20520
20548
|
}]);
|
|
20521
20549
|
}(BaseRender);
|
|
20522
|
-
exports.DefaultCanvasAreaRender = __decorate$
|
|
20550
|
+
exports.DefaultCanvasAreaRender = __decorate$1v([injectable(), __param$M(0, inject(ContributionProvider)), __param$M(0, named(AreaRenderContribution)), __metadata$19("design:paramtypes", [Object])], exports.DefaultCanvasAreaRender);
|
|
20523
20551
|
|
|
20524
20552
|
var defaultPathTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
20525
20553
|
var defaultPathBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
20526
20554
|
|
|
20527
|
-
var __decorate$
|
|
20555
|
+
var __decorate$1u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20528
20556
|
var d,
|
|
20529
20557
|
c = arguments.length,
|
|
20530
20558
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20531
20559
|
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
20560
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20533
20561
|
},
|
|
20534
|
-
__metadata$
|
|
20562
|
+
__metadata$18 = undefined && undefined.__metadata || function (k, v) {
|
|
20535
20563
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
20536
20564
|
},
|
|
20537
|
-
__param$
|
|
20565
|
+
__param$L = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
20538
20566
|
return function (target, key) {
|
|
20539
20567
|
decorator(target, key, paramIndex);
|
|
20540
20568
|
};
|
|
@@ -20578,19 +20606,19 @@
|
|
|
20578
20606
|
}
|
|
20579
20607
|
}]);
|
|
20580
20608
|
}(BaseRender);
|
|
20581
|
-
exports.DefaultCanvasPathRender = __decorate$
|
|
20609
|
+
exports.DefaultCanvasPathRender = __decorate$1u([injectable(), __param$L(0, inject(ContributionProvider)), __param$L(0, named(PathRenderContribution)), __metadata$18("design:paramtypes", [Object])], exports.DefaultCanvasPathRender);
|
|
20582
20610
|
|
|
20583
|
-
var __decorate$
|
|
20611
|
+
var __decorate$1t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20584
20612
|
var d,
|
|
20585
20613
|
c = arguments.length,
|
|
20586
20614
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20587
20615
|
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
20616
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20589
20617
|
},
|
|
20590
|
-
__metadata$
|
|
20618
|
+
__metadata$17 = undefined && undefined.__metadata || function (k, v) {
|
|
20591
20619
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
20592
20620
|
},
|
|
20593
|
-
__param$
|
|
20621
|
+
__param$K = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
20594
20622
|
return function (target, key) {
|
|
20595
20623
|
decorator(target, key, paramIndex);
|
|
20596
20624
|
};
|
|
@@ -20660,19 +20688,19 @@
|
|
|
20660
20688
|
}
|
|
20661
20689
|
}]);
|
|
20662
20690
|
}(BaseRender);
|
|
20663
|
-
exports.DefaultCanvasRectRender = __decorate$
|
|
20691
|
+
exports.DefaultCanvasRectRender = __decorate$1t([injectable(), __param$K(0, inject(ContributionProvider)), __param$K(0, named(RectRenderContribution)), __metadata$17("design:paramtypes", [Object])], exports.DefaultCanvasRectRender);
|
|
20664
20692
|
|
|
20665
|
-
var __decorate$
|
|
20693
|
+
var __decorate$1s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20666
20694
|
var d,
|
|
20667
20695
|
c = arguments.length,
|
|
20668
20696
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20669
20697
|
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
20698
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20671
20699
|
},
|
|
20672
|
-
__metadata$
|
|
20700
|
+
__metadata$16 = undefined && undefined.__metadata || function (k, v) {
|
|
20673
20701
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
20674
20702
|
},
|
|
20675
|
-
__param$
|
|
20703
|
+
__param$J = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
20676
20704
|
return function (target, key) {
|
|
20677
20705
|
decorator(target, key, paramIndex);
|
|
20678
20706
|
};
|
|
@@ -20741,7 +20769,7 @@
|
|
|
20741
20769
|
}
|
|
20742
20770
|
}]);
|
|
20743
20771
|
}(BaseRender);
|
|
20744
|
-
exports.DefaultCanvasSymbolRender = __decorate$
|
|
20772
|
+
exports.DefaultCanvasSymbolRender = __decorate$1s([injectable(), __param$J(0, inject(ContributionProvider)), __param$J(0, named(SymbolRenderContribution)), __metadata$16("design:paramtypes", [Object])], exports.DefaultCanvasSymbolRender);
|
|
20745
20773
|
|
|
20746
20774
|
var DefaultBoundsAllocate = /*#__PURE__*/function () {
|
|
20747
20775
|
function DefaultBoundsAllocate() {
|
|
@@ -20843,17 +20871,17 @@
|
|
|
20843
20871
|
}(DefaultBaseBackgroundRenderContribution);
|
|
20844
20872
|
var defaultTextBackgroundRenderContribution = new DefaultTextBackgroundRenderContribution();
|
|
20845
20873
|
|
|
20846
|
-
var __decorate$
|
|
20874
|
+
var __decorate$1r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
20847
20875
|
var d,
|
|
20848
20876
|
c = arguments.length,
|
|
20849
20877
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
20850
20878
|
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
20879
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
20852
20880
|
},
|
|
20853
|
-
__metadata$
|
|
20881
|
+
__metadata$15 = undefined && undefined.__metadata || function (k, v) {
|
|
20854
20882
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
20855
20883
|
},
|
|
20856
|
-
__param$
|
|
20884
|
+
__param$I = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
20857
20885
|
return function (target, key) {
|
|
20858
20886
|
decorator(target, key, paramIndex);
|
|
20859
20887
|
};
|
|
@@ -21076,9 +21104,9 @@
|
|
|
21076
21104
|
}
|
|
21077
21105
|
}]);
|
|
21078
21106
|
}(BaseRender);
|
|
21079
|
-
exports.DefaultCanvasTextRender = __decorate$
|
|
21107
|
+
exports.DefaultCanvasTextRender = __decorate$1r([injectable(), __param$I(0, inject(ContributionProvider)), __param$I(0, named(TextRenderContribution)), __metadata$15("design:paramtypes", [Object])], exports.DefaultCanvasTextRender);
|
|
21080
21108
|
|
|
21081
|
-
var __decorate$
|
|
21109
|
+
var __decorate$1q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21082
21110
|
var d,
|
|
21083
21111
|
c = arguments.length,
|
|
21084
21112
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21088,7 +21116,7 @@
|
|
|
21088
21116
|
exports.AbstractGraphicRender = /*#__PURE__*/_createClass(function AbstractGraphicRender() {
|
|
21089
21117
|
_classCallCheck(this, AbstractGraphicRender);
|
|
21090
21118
|
});
|
|
21091
|
-
exports.AbstractGraphicRender = __decorate$
|
|
21119
|
+
exports.AbstractGraphicRender = __decorate$1q([injectable()], exports.AbstractGraphicRender);
|
|
21092
21120
|
|
|
21093
21121
|
function drawPolygon(path, points, x, y) {
|
|
21094
21122
|
path.moveTo(points[0].x + x, points[0].y + y);
|
|
@@ -21144,17 +21172,17 @@
|
|
|
21144
21172
|
var defaultPolygonTextureRenderContribution = defaultBaseTextureRenderContribution;
|
|
21145
21173
|
var defaultPolygonBackgroundRenderContribution = defaultBaseBackgroundRenderContribution;
|
|
21146
21174
|
|
|
21147
|
-
var __decorate$
|
|
21175
|
+
var __decorate$1p = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21148
21176
|
var d,
|
|
21149
21177
|
c = arguments.length,
|
|
21150
21178
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
21151
21179
|
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
21180
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21153
21181
|
},
|
|
21154
|
-
__metadata$
|
|
21182
|
+
__metadata$14 = undefined && undefined.__metadata || function (k, v) {
|
|
21155
21183
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21156
21184
|
},
|
|
21157
|
-
__param$
|
|
21185
|
+
__param$H = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
21158
21186
|
return function (target, key) {
|
|
21159
21187
|
decorator(target, key, paramIndex);
|
|
21160
21188
|
};
|
|
@@ -21200,19 +21228,19 @@
|
|
|
21200
21228
|
}
|
|
21201
21229
|
}]);
|
|
21202
21230
|
}(BaseRender);
|
|
21203
|
-
exports.DefaultCanvasPolygonRender = __decorate$
|
|
21231
|
+
exports.DefaultCanvasPolygonRender = __decorate$1p([injectable(), __param$H(0, inject(ContributionProvider)), __param$H(0, named(PolygonRenderContribution)), __metadata$14("design:paramtypes", [Object])], exports.DefaultCanvasPolygonRender);
|
|
21204
21232
|
|
|
21205
|
-
var __decorate$
|
|
21233
|
+
var __decorate$1o = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21206
21234
|
var d,
|
|
21207
21235
|
c = arguments.length,
|
|
21208
21236
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
21209
21237
|
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
21238
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21211
21239
|
},
|
|
21212
|
-
__metadata$
|
|
21240
|
+
__metadata$13 = undefined && undefined.__metadata || function (k, v) {
|
|
21213
21241
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21214
21242
|
},
|
|
21215
|
-
__param$
|
|
21243
|
+
__param$G = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
21216
21244
|
return function (target, key) {
|
|
21217
21245
|
decorator(target, key, paramIndex);
|
|
21218
21246
|
};
|
|
@@ -21280,7 +21308,7 @@
|
|
|
21280
21308
|
}
|
|
21281
21309
|
}]);
|
|
21282
21310
|
}(BaseRender);
|
|
21283
|
-
exports.DefaultCanvasImageRender = __decorate$
|
|
21311
|
+
exports.DefaultCanvasImageRender = __decorate$1o([injectable(), __param$G(0, inject(ContributionProvider)), __param$G(0, named(ImageRenderContribution)), __metadata$13("design:paramtypes", [Object])], exports.DefaultCanvasImageRender);
|
|
21284
21312
|
|
|
21285
21313
|
var IncrementalDrawContribution = Symbol["for"]("IncrementalDrawContribution");
|
|
21286
21314
|
var ArcRender = Symbol["for"]("ArcRender");
|
|
@@ -21303,14 +21331,14 @@
|
|
|
21303
21331
|
var RenderSelector = Symbol["for"]("RenderSelector");
|
|
21304
21332
|
var DrawContribution = Symbol["for"]("DrawContribution");
|
|
21305
21333
|
|
|
21306
|
-
var __decorate$
|
|
21334
|
+
var __decorate$1n = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21307
21335
|
var d,
|
|
21308
21336
|
c = arguments.length,
|
|
21309
21337
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
21310
21338
|
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
21339
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21312
21340
|
},
|
|
21313
|
-
__metadata
|
|
21341
|
+
__metadata$12 = undefined && undefined.__metadata || function (k, v) {
|
|
21314
21342
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21315
21343
|
};
|
|
21316
21344
|
var DrawItemInterceptor = Symbol["for"]("DrawItemInterceptor");
|
|
@@ -21385,7 +21413,7 @@
|
|
|
21385
21413
|
}
|
|
21386
21414
|
}]);
|
|
21387
21415
|
}();
|
|
21388
|
-
exports.CommonDrawItemInterceptorContribution = __decorate$
|
|
21416
|
+
exports.CommonDrawItemInterceptorContribution = __decorate$1n([injectable(), __metadata$12("design:paramtypes", [])], exports.CommonDrawItemInterceptorContribution);
|
|
21389
21417
|
var InteractiveDrawItemInterceptorContribution = /*#__PURE__*/function () {
|
|
21390
21418
|
function InteractiveDrawItemInterceptorContribution() {
|
|
21391
21419
|
_classCallCheck(this, InteractiveDrawItemInterceptorContribution);
|
|
@@ -21540,17 +21568,17 @@
|
|
|
21540
21568
|
}]);
|
|
21541
21569
|
}();
|
|
21542
21570
|
|
|
21543
|
-
var __decorate$
|
|
21571
|
+
var __decorate$1m = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21544
21572
|
var d,
|
|
21545
21573
|
c = arguments.length,
|
|
21546
21574
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
21547
21575
|
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
21576
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21549
21577
|
},
|
|
21550
|
-
__metadata$
|
|
21578
|
+
__metadata$11 = undefined && undefined.__metadata || function (k, v) {
|
|
21551
21579
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21552
21580
|
},
|
|
21553
|
-
__param$
|
|
21581
|
+
__param$F = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
21554
21582
|
return function (target, key) {
|
|
21555
21583
|
decorator(target, key, paramIndex);
|
|
21556
21584
|
};
|
|
@@ -21606,7 +21634,7 @@
|
|
|
21606
21634
|
}
|
|
21607
21635
|
}]);
|
|
21608
21636
|
}();
|
|
21609
|
-
exports.DefaultRenderService = __decorate$
|
|
21637
|
+
exports.DefaultRenderService = __decorate$1m([injectable(), __param$F(0, inject(DrawContribution)), __metadata$11("design:paramtypes", [Object])], exports.DefaultRenderService);
|
|
21610
21638
|
|
|
21611
21639
|
var renderModule$1 = new ContainerModule(function (bind) {
|
|
21612
21640
|
bind(RenderService).to(exports.DefaultRenderService);
|
|
@@ -21617,7 +21645,7 @@
|
|
|
21617
21645
|
var BoundsPicker = Symbol["for"]("BoundsPicker");
|
|
21618
21646
|
var GlobalPickerService = Symbol["for"]("GlobalPickerService");
|
|
21619
21647
|
|
|
21620
|
-
var __decorate$
|
|
21648
|
+
var __decorate$1l = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21621
21649
|
var d,
|
|
21622
21650
|
c = arguments.length,
|
|
21623
21651
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -21657,7 +21685,7 @@
|
|
|
21657
21685
|
}
|
|
21658
21686
|
}]);
|
|
21659
21687
|
}();
|
|
21660
|
-
exports.ShadowRootPickItemInterceptorContribution = __decorate$
|
|
21688
|
+
exports.ShadowRootPickItemInterceptorContribution = __decorate$1l([injectable()], exports.ShadowRootPickItemInterceptorContribution);
|
|
21661
21689
|
exports.InteractivePickItemInterceptorContribution = /*#__PURE__*/function () {
|
|
21662
21690
|
function InteractivePickItemInterceptorContribution() {
|
|
21663
21691
|
_classCallCheck(this, InteractivePickItemInterceptorContribution);
|
|
@@ -21680,7 +21708,7 @@
|
|
|
21680
21708
|
}
|
|
21681
21709
|
}]);
|
|
21682
21710
|
}();
|
|
21683
|
-
exports.InteractivePickItemInterceptorContribution = __decorate$
|
|
21711
|
+
exports.InteractivePickItemInterceptorContribution = __decorate$1l([injectable()], exports.InteractivePickItemInterceptorContribution);
|
|
21684
21712
|
exports.Canvas3DPickItemInterceptor = /*#__PURE__*/function () {
|
|
21685
21713
|
function Canvas3DPickItemInterceptor() {
|
|
21686
21714
|
_classCallCheck(this, Canvas3DPickItemInterceptor);
|
|
@@ -21756,7 +21784,7 @@
|
|
|
21756
21784
|
}
|
|
21757
21785
|
}]);
|
|
21758
21786
|
}();
|
|
21759
|
-
exports.Canvas3DPickItemInterceptor = __decorate$
|
|
21787
|
+
exports.Canvas3DPickItemInterceptor = __decorate$1l([injectable()], exports.Canvas3DPickItemInterceptor);
|
|
21760
21788
|
|
|
21761
21789
|
var pickModule = new ContainerModule(function (bind, unbind, isBound) {
|
|
21762
21790
|
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 +21797,17 @@
|
|
|
21769
21797
|
var AutoEnablePlugins = Symbol["for"]("AutoEnablePlugins");
|
|
21770
21798
|
var PluginService = Symbol["for"]("PluginService");
|
|
21771
21799
|
|
|
21772
|
-
var __decorate$
|
|
21800
|
+
var __decorate$1k = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21773
21801
|
var d,
|
|
21774
21802
|
c = arguments.length,
|
|
21775
21803
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
21776
21804
|
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
21805
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21778
21806
|
},
|
|
21779
|
-
__metadata$
|
|
21807
|
+
__metadata$10 = undefined && undefined.__metadata || function (k, v) {
|
|
21780
21808
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21781
21809
|
},
|
|
21782
|
-
__param$
|
|
21810
|
+
__param$E = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
21783
21811
|
return function (target, key) {
|
|
21784
21812
|
decorator(target, key, paramIndex);
|
|
21785
21813
|
};
|
|
@@ -21831,7 +21859,7 @@
|
|
|
21831
21859
|
}
|
|
21832
21860
|
}]);
|
|
21833
21861
|
}();
|
|
21834
|
-
DefaultPluginService = __decorate$
|
|
21862
|
+
DefaultPluginService = __decorate$1k([injectable(), __param$E(0, inject(ContributionProvider)), __param$E(0, named(AutoEnablePlugins)), __metadata$10("design:paramtypes", [Object])], DefaultPluginService);
|
|
21835
21863
|
|
|
21836
21864
|
var pluginModule = new ContainerModule(function (bind) {
|
|
21837
21865
|
bind(PluginService).to(DefaultPluginService), bindContributionProviderNoSingletonScope(bind, AutoEnablePlugins);
|
|
@@ -21845,14 +21873,14 @@
|
|
|
21845
21873
|
bind(TextMeasureContribution).to(exports.DefaultTextMeasureContribution).inSingletonScope(), bindContributionProvider(bind, TextMeasureContribution);
|
|
21846
21874
|
});
|
|
21847
21875
|
|
|
21848
|
-
var __decorate$
|
|
21876
|
+
var __decorate$1j = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21849
21877
|
var d,
|
|
21850
21878
|
c = arguments.length,
|
|
21851
21879
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
21852
21880
|
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
21881
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21854
21882
|
},
|
|
21855
|
-
__metadata
|
|
21883
|
+
__metadata$$ = undefined && undefined.__metadata || function (k, v) {
|
|
21856
21884
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21857
21885
|
};
|
|
21858
21886
|
var CanvasLayerHandlerContribution = /*#__PURE__*/function () {
|
|
@@ -21945,16 +21973,16 @@
|
|
|
21945
21973
|
}
|
|
21946
21974
|
}]);
|
|
21947
21975
|
}();
|
|
21948
|
-
CanvasLayerHandlerContribution = __decorate$
|
|
21976
|
+
CanvasLayerHandlerContribution = __decorate$1j([injectable(), __metadata$$("design:paramtypes", [])], CanvasLayerHandlerContribution);
|
|
21949
21977
|
|
|
21950
|
-
var __decorate$
|
|
21978
|
+
var __decorate$1i = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
21951
21979
|
var d,
|
|
21952
21980
|
c = arguments.length,
|
|
21953
21981
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
21954
21982
|
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
21983
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
21956
21984
|
},
|
|
21957
|
-
__metadata$
|
|
21985
|
+
__metadata$_ = undefined && undefined.__metadata || function (k, v) {
|
|
21958
21986
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
21959
21987
|
};
|
|
21960
21988
|
var EmptyLayerHandlerContribution = /*#__PURE__*/function () {
|
|
@@ -22011,16 +22039,16 @@
|
|
|
22011
22039
|
value: function release() {}
|
|
22012
22040
|
}]);
|
|
22013
22041
|
}();
|
|
22014
|
-
EmptyLayerHandlerContribution = __decorate$
|
|
22042
|
+
EmptyLayerHandlerContribution = __decorate$1i([injectable(), __metadata$_("design:paramtypes", [])], EmptyLayerHandlerContribution);
|
|
22015
22043
|
|
|
22016
|
-
var __decorate$
|
|
22044
|
+
var __decorate$1h = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
22017
22045
|
var d,
|
|
22018
22046
|
c = arguments.length,
|
|
22019
22047
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
22020
22048
|
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
22049
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22022
22050
|
},
|
|
22023
|
-
__metadata$
|
|
22051
|
+
__metadata$Z = undefined && undefined.__metadata || function (k, v) {
|
|
22024
22052
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
22025
22053
|
};
|
|
22026
22054
|
var OffscreenLayerHandlerContribution = /*#__PURE__*/function () {
|
|
@@ -22103,7 +22131,7 @@
|
|
|
22103
22131
|
value: function merge(layerHandlers) {}
|
|
22104
22132
|
}]);
|
|
22105
22133
|
}();
|
|
22106
|
-
OffscreenLayerHandlerContribution = __decorate$
|
|
22134
|
+
OffscreenLayerHandlerContribution = __decorate$1h([injectable(), __metadata$Z("design:paramtypes", [])], OffscreenLayerHandlerContribution);
|
|
22107
22135
|
|
|
22108
22136
|
var layerHandlerModules = new ContainerModule(function (bind) {
|
|
22109
22137
|
bind(CanvasLayerHandlerContribution).toSelf(), bind(OffscreenLayerHandlerContribution).toSelf(), bind(EmptyLayerHandlerContribution).toSelf(), bind(StaticLayerHandlerContribution).toService(CanvasLayerHandlerContribution), bind(DynamicLayerHandlerContribution).toService(OffscreenLayerHandlerContribution), bind(VirtualLayerHandlerContribution).toService(EmptyLayerHandlerContribution);
|
|
@@ -22113,7 +22141,7 @@
|
|
|
22113
22141
|
container.load(envModules), container.load(textMeasureModules), container.load(layerHandlerModules);
|
|
22114
22142
|
}
|
|
22115
22143
|
|
|
22116
|
-
var __awaiter$
|
|
22144
|
+
var __awaiter$3 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
22117
22145
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
22118
22146
|
function fulfilled(value) {
|
|
22119
22147
|
try {
|
|
@@ -22178,7 +22206,7 @@
|
|
|
22178
22206
|
}
|
|
22179
22207
|
function foreachAsync(graphic, defaultZIndex, cb) {
|
|
22180
22208
|
var reverse = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : !1;
|
|
22181
|
-
return __awaiter$
|
|
22209
|
+
return __awaiter$3(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
22182
22210
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
22183
22211
|
while (1) switch (_context.prev = _context.next) {
|
|
22184
22212
|
case 0:
|
|
@@ -22230,17 +22258,17 @@
|
|
|
22230
22258
|
return result;
|
|
22231
22259
|
}
|
|
22232
22260
|
|
|
22233
|
-
var __decorate$
|
|
22261
|
+
var __decorate$1g = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
22234
22262
|
var d,
|
|
22235
22263
|
c = arguments.length,
|
|
22236
22264
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
22237
22265
|
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
22266
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22239
22267
|
},
|
|
22240
|
-
__metadata$
|
|
22268
|
+
__metadata$Y = undefined && undefined.__metadata || function (k, v) {
|
|
22241
22269
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
22242
22270
|
},
|
|
22243
|
-
__param$
|
|
22271
|
+
__param$D = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
22244
22272
|
return function (target, key) {
|
|
22245
22273
|
decorator(target, key, paramIndex);
|
|
22246
22274
|
};
|
|
@@ -22453,19 +22481,19 @@
|
|
|
22453
22481
|
value: function afterDraw(renderService, drawParams) {}
|
|
22454
22482
|
}]);
|
|
22455
22483
|
}();
|
|
22456
|
-
DefaultDrawContribution = __decorate$
|
|
22484
|
+
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
22485
|
|
|
22458
|
-
var __decorate$
|
|
22486
|
+
var __decorate$1f = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
22459
22487
|
var d,
|
|
22460
22488
|
c = arguments.length,
|
|
22461
22489
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
22462
22490
|
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
22491
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22464
22492
|
},
|
|
22465
|
-
__metadata$
|
|
22493
|
+
__metadata$X = undefined && undefined.__metadata || function (k, v) {
|
|
22466
22494
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
22467
22495
|
},
|
|
22468
|
-
__param$
|
|
22496
|
+
__param$C = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
22469
22497
|
return function (target, key) {
|
|
22470
22498
|
decorator(target, key, paramIndex);
|
|
22471
22499
|
};
|
|
@@ -22540,8 +22568,11 @@
|
|
|
22540
22568
|
value: function draw(group, renderService, drawContext, params) {
|
|
22541
22569
|
var context = drawContext.context;
|
|
22542
22570
|
if (!context) return;
|
|
22543
|
-
var
|
|
22544
|
-
|
|
22571
|
+
var _group$attribute2 = group.attribute,
|
|
22572
|
+
clip = _group$attribute2.clip,
|
|
22573
|
+
_group$attribute2$bas = _group$attribute2.baseOpacity,
|
|
22574
|
+
baseOpacity = _group$attribute2$bas === void 0 ? 1 : _group$attribute2$bas;
|
|
22575
|
+
clip ? context.save() : context.highPerformanceSave(), context.baseGlobalAlpha *= baseOpacity;
|
|
22545
22576
|
var groupAttribute = getTheme(group, null == params ? void 0 : params.theme).group,
|
|
22546
22577
|
lastModelMatrix = context.modelMatrix;
|
|
22547
22578
|
if (context.camera) {
|
|
@@ -22554,21 +22585,21 @@
|
|
|
22554
22585
|
}, function () {
|
|
22555
22586
|
return !1;
|
|
22556
22587
|
}) : this.drawShape(group, context, 0, 0, drawContext);
|
|
22557
|
-
var _group$
|
|
22558
|
-
_group$
|
|
22559
|
-
scrollX = _group$
|
|
22560
|
-
_group$
|
|
22561
|
-
scrollY = _group$
|
|
22588
|
+
var _group$attribute3 = group.attribute,
|
|
22589
|
+
_group$attribute3$scr = _group$attribute3.scrollX,
|
|
22590
|
+
scrollX = _group$attribute3$scr === void 0 ? groupAttribute.scrollX : _group$attribute3$scr,
|
|
22591
|
+
_group$attribute3$scr2 = _group$attribute3.scrollY,
|
|
22592
|
+
scrollY = _group$attribute3$scr2 === void 0 ? groupAttribute.scrollY : _group$attribute3$scr2;
|
|
22562
22593
|
var p;
|
|
22563
|
-
(scrollX || scrollY) && context.translate(scrollX, scrollY), params && params.drawingCb && (p = params.drawingCb()), context.modelMatrix !== lastModelMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastModelMatrix, p && p.then ? p.then(function () {
|
|
22594
|
+
(scrollX || scrollY) && context.translate(scrollX, scrollY), params && params.drawingCb && (p = params.drawingCb()), context.modelMatrix !== lastModelMatrix && mat4Allocate.free(context.modelMatrix), context.modelMatrix = lastModelMatrix, context.baseGlobalAlpha /= baseOpacity, p && p.then ? p.then(function () {
|
|
22564
22595
|
clip ? context.restore() : context.highPerformanceRestore();
|
|
22565
22596
|
}) : clip ? context.restore() : context.highPerformanceRestore();
|
|
22566
22597
|
}
|
|
22567
22598
|
}]);
|
|
22568
22599
|
}();
|
|
22569
|
-
DefaultCanvasGroupRender = __decorate$
|
|
22600
|
+
DefaultCanvasGroupRender = __decorate$1f([injectable(), __param$C(0, inject(ContributionProvider)), __param$C(0, named(GroupRenderContribution)), __metadata$X("design:paramtypes", [Object])], DefaultCanvasGroupRender);
|
|
22570
22601
|
|
|
22571
|
-
var __decorate$
|
|
22602
|
+
var __decorate$1e = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
22572
22603
|
var d,
|
|
22573
22604
|
c = arguments.length,
|
|
22574
22605
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -22630,9 +22661,9 @@
|
|
|
22630
22661
|
}
|
|
22631
22662
|
}]);
|
|
22632
22663
|
}(exports.DefaultCanvasLineRender);
|
|
22633
|
-
DefaultIncrementalCanvasLineRender = __decorate$
|
|
22664
|
+
DefaultIncrementalCanvasLineRender = __decorate$1e([injectable()], DefaultIncrementalCanvasLineRender);
|
|
22634
22665
|
|
|
22635
|
-
var __decorate$
|
|
22666
|
+
var __decorate$1d = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
22636
22667
|
var d,
|
|
22637
22668
|
c = arguments.length,
|
|
22638
22669
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -22685,25 +22716,25 @@
|
|
|
22685
22716
|
}
|
|
22686
22717
|
}]);
|
|
22687
22718
|
}(exports.DefaultCanvasAreaRender);
|
|
22688
|
-
DefaultIncrementalCanvasAreaRender = __decorate$
|
|
22719
|
+
DefaultIncrementalCanvasAreaRender = __decorate$1d([injectable()], DefaultIncrementalCanvasAreaRender);
|
|
22689
22720
|
|
|
22690
22721
|
var STATUS,
|
|
22691
|
-
__decorate$
|
|
22722
|
+
__decorate$1c = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
22692
22723
|
var d,
|
|
22693
22724
|
c = arguments.length,
|
|
22694
22725
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
22695
22726
|
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
22727
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22697
22728
|
},
|
|
22698
|
-
__metadata$
|
|
22729
|
+
__metadata$W = undefined && undefined.__metadata || function (k, v) {
|
|
22699
22730
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
22700
22731
|
},
|
|
22701
|
-
__param$
|
|
22732
|
+
__param$B = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
22702
22733
|
return function (target, key) {
|
|
22703
22734
|
decorator(target, key, paramIndex);
|
|
22704
22735
|
};
|
|
22705
22736
|
},
|
|
22706
|
-
__awaiter$
|
|
22737
|
+
__awaiter$2 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
22707
22738
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
22708
22739
|
function fulfilled(value) {
|
|
22709
22740
|
try {
|
|
@@ -22744,7 +22775,7 @@
|
|
|
22744
22775
|
return _createClass(DefaultIncrementalDrawContribution, [{
|
|
22745
22776
|
key: "draw",
|
|
22746
22777
|
value: function draw(renderService, drawContext) {
|
|
22747
|
-
return __awaiter$
|
|
22778
|
+
return __awaiter$2(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
22748
22779
|
var _this2 = this;
|
|
22749
22780
|
var skipDraw, context, viewBox;
|
|
22750
22781
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -22787,7 +22818,7 @@
|
|
|
22787
22818
|
}, {
|
|
22788
22819
|
key: "_increaseRender",
|
|
22789
22820
|
value: function _increaseRender(group, drawContext) {
|
|
22790
|
-
return __awaiter$
|
|
22821
|
+
return __awaiter$2(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
22791
22822
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
22792
22823
|
while (1) switch (_context2.prev = _context2.next) {
|
|
22793
22824
|
case 0:
|
|
@@ -22804,7 +22835,7 @@
|
|
|
22804
22835
|
}, {
|
|
22805
22836
|
key: "_renderIncrementalGroup",
|
|
22806
22837
|
value: function _renderIncrementalGroup(group, drawContext) {
|
|
22807
|
-
return __awaiter$
|
|
22838
|
+
return __awaiter$2(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
22808
22839
|
var _this3 = this;
|
|
22809
22840
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
22810
22841
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -22814,7 +22845,7 @@
|
|
|
22814
22845
|
return new Promise(function (resolve) {
|
|
22815
22846
|
_this3.renderItem(group, drawContext, {
|
|
22816
22847
|
drawingCb: function drawingCb() {
|
|
22817
|
-
return __awaiter$
|
|
22848
|
+
return __awaiter$2(_this3, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
22818
22849
|
var _this4 = this;
|
|
22819
22850
|
var graphic;
|
|
22820
22851
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
@@ -22887,7 +22918,7 @@
|
|
|
22887
22918
|
}, {
|
|
22888
22919
|
key: "waitToNextFrame",
|
|
22889
22920
|
value: function waitToNextFrame() {
|
|
22890
|
-
return __awaiter$
|
|
22921
|
+
return __awaiter$2(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
22891
22922
|
var _this5 = this;
|
|
22892
22923
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
22893
22924
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -22907,7 +22938,7 @@
|
|
|
22907
22938
|
}, {
|
|
22908
22939
|
key: "checkForDraw",
|
|
22909
22940
|
value: function checkForDraw(drawContext) {
|
|
22910
|
-
return __awaiter$
|
|
22941
|
+
return __awaiter$2(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
22911
22942
|
var skip;
|
|
22912
22943
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
22913
22944
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -22935,7 +22966,7 @@
|
|
|
22935
22966
|
}, {
|
|
22936
22967
|
key: "forceStop",
|
|
22937
22968
|
value: function forceStop() {
|
|
22938
|
-
return __awaiter$
|
|
22969
|
+
return __awaiter$2(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
22939
22970
|
var _this6 = this;
|
|
22940
22971
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
22941
22972
|
while (1) switch (_context7.prev = _context7.next) {
|
|
@@ -22969,7 +23000,7 @@
|
|
|
22969
23000
|
}, {
|
|
22970
23001
|
key: "renderGroup",
|
|
22971
23002
|
value: function renderGroup(group, drawContext) {
|
|
22972
|
-
return __awaiter$
|
|
23003
|
+
return __awaiter$2(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee10() {
|
|
22973
23004
|
var _this7 = this;
|
|
22974
23005
|
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
22975
23006
|
while (1) switch (_context10.prev = _context10.next) {
|
|
@@ -22993,14 +23024,14 @@
|
|
|
22993
23024
|
return new Promise(function (resolve) {
|
|
22994
23025
|
_this7.renderItem(group, drawContext, {
|
|
22995
23026
|
drawingCb: function drawingCb() {
|
|
22996
|
-
return __awaiter$
|
|
23027
|
+
return __awaiter$2(_this7, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
|
|
22997
23028
|
var _this8 = this;
|
|
22998
23029
|
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
22999
23030
|
while (1) switch (_context9.prev = _context9.next) {
|
|
23000
23031
|
case 0:
|
|
23001
23032
|
_context9.next = 2;
|
|
23002
23033
|
return foreachAsync(group, DefaultAttribute.zIndex, function (item) {
|
|
23003
|
-
return __awaiter$
|
|
23034
|
+
return __awaiter$2(_this8, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
|
|
23004
23035
|
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
23005
23036
|
while (1) switch (_context8.prev = _context8.next) {
|
|
23006
23037
|
case 0:
|
|
@@ -23047,7 +23078,7 @@
|
|
|
23047
23078
|
}
|
|
23048
23079
|
}]);
|
|
23049
23080
|
}(DefaultDrawContribution);
|
|
23050
|
-
DefaultIncrementalDrawContribution = __decorate$
|
|
23081
|
+
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
23082
|
|
|
23052
23083
|
var renderModule = new ContainerModule(function (bind) {
|
|
23053
23084
|
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 +24610,16 @@
|
|
|
24579
24610
|
var point = this.global.mapToCanvasPoint(e, this.window.getContext().canvas.nativeCanvas);
|
|
24580
24611
|
return this.stage.window.pointTransform(point.x, point.y);
|
|
24581
24612
|
}
|
|
24613
|
+
}, {
|
|
24614
|
+
key: "pauseTriggerEvent",
|
|
24615
|
+
value: function pauseTriggerEvent() {
|
|
24616
|
+
this._eventSystem && this._eventSystem.pauseTriggerEvent();
|
|
24617
|
+
}
|
|
24618
|
+
}, {
|
|
24619
|
+
key: "resumeTriggerEvent",
|
|
24620
|
+
value: function resumeTriggerEvent() {
|
|
24621
|
+
this._eventSystem && this._eventSystem.resumeTriggerEvent();
|
|
24622
|
+
}
|
|
24582
24623
|
}]);
|
|
24583
24624
|
}(Group);
|
|
24584
24625
|
|
|
@@ -24588,14 +24629,14 @@
|
|
|
24588
24629
|
|
|
24589
24630
|
var strCommandMap = ["arc", "arcTo", "bezierCurveTo", "closePath", "ellipse", "lineTo", "moveTo", "quadraticCurveTo", "rect"];
|
|
24590
24631
|
|
|
24591
|
-
var __decorate$
|
|
24632
|
+
var __decorate$1b = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24592
24633
|
var d,
|
|
24593
24634
|
c = arguments.length,
|
|
24594
24635
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
24595
24636
|
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
24637
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24597
24638
|
},
|
|
24598
|
-
__metadata$
|
|
24639
|
+
__metadata$V = undefined && undefined.__metadata || function (k, v) {
|
|
24599
24640
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
24600
24641
|
};
|
|
24601
24642
|
var initMatrix = new Matrix(1, 0, 0, 1, 0, 0),
|
|
@@ -24941,16 +24982,16 @@
|
|
|
24941
24982
|
}
|
|
24942
24983
|
}]);
|
|
24943
24984
|
}();
|
|
24944
|
-
exports.EmptyContext2d = __decorate$
|
|
24985
|
+
exports.EmptyContext2d = __decorate$1b([injectable(), __metadata$V("design:paramtypes", [Object, Number])], exports.EmptyContext2d);
|
|
24945
24986
|
|
|
24946
|
-
var __decorate$
|
|
24987
|
+
var __decorate$1a = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
24947
24988
|
var d,
|
|
24948
24989
|
c = arguments.length,
|
|
24949
24990
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
24950
24991
|
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
24992
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
24952
24993
|
},
|
|
24953
|
-
__metadata$
|
|
24994
|
+
__metadata$U = undefined && undefined.__metadata || function (k, v) {
|
|
24954
24995
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
24955
24996
|
};
|
|
24956
24997
|
var DefaultConfig = {
|
|
@@ -25096,9 +25137,9 @@
|
|
|
25096
25137
|
}
|
|
25097
25138
|
}]);
|
|
25098
25139
|
}();
|
|
25099
|
-
exports.BaseCanvas.env = "browser", exports.BaseCanvas = __decorate$
|
|
25140
|
+
exports.BaseCanvas.env = "browser", exports.BaseCanvas = __decorate$1a([injectable(), __metadata$U("design:paramtypes", [Object])], exports.BaseCanvas);
|
|
25100
25141
|
|
|
25101
|
-
var __decorate$
|
|
25142
|
+
var __decorate$19 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25102
25143
|
var d,
|
|
25103
25144
|
c = arguments.length,
|
|
25104
25145
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25226,16 +25267,16 @@
|
|
|
25226
25267
|
}
|
|
25227
25268
|
}]);
|
|
25228
25269
|
}();
|
|
25229
|
-
exports.BaseEnvContribution = __decorate$
|
|
25270
|
+
exports.BaseEnvContribution = __decorate$19([injectable()], exports.BaseEnvContribution);
|
|
25230
25271
|
|
|
25231
|
-
var __decorate$
|
|
25272
|
+
var __decorate$18 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25232
25273
|
var d,
|
|
25233
25274
|
c = arguments.length,
|
|
25234
25275
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25235
25276
|
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
25277
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25237
25278
|
},
|
|
25238
|
-
__metadata$
|
|
25279
|
+
__metadata$T = undefined && undefined.__metadata || function (k, v) {
|
|
25239
25280
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25240
25281
|
};
|
|
25241
25282
|
exports.BaseWindowHandlerContribution = /*#__PURE__*/function () {
|
|
@@ -25296,19 +25337,19 @@
|
|
|
25296
25337
|
}
|
|
25297
25338
|
}]);
|
|
25298
25339
|
}();
|
|
25299
|
-
exports.BaseWindowHandlerContribution = __decorate$
|
|
25340
|
+
exports.BaseWindowHandlerContribution = __decorate$18([injectable(), __metadata$T("design:paramtypes", [])], exports.BaseWindowHandlerContribution);
|
|
25300
25341
|
|
|
25301
|
-
var __decorate$
|
|
25342
|
+
var __decorate$17 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25302
25343
|
var d,
|
|
25303
25344
|
c = arguments.length,
|
|
25304
25345
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25305
25346
|
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
25347
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25307
25348
|
},
|
|
25308
|
-
__metadata$
|
|
25349
|
+
__metadata$S = undefined && undefined.__metadata || function (k, v) {
|
|
25309
25350
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25310
25351
|
},
|
|
25311
|
-
__param$
|
|
25352
|
+
__param$A = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
25312
25353
|
return function (target, key) {
|
|
25313
25354
|
decorator(target, key, paramIndex);
|
|
25314
25355
|
};
|
|
@@ -25431,16 +25472,16 @@
|
|
|
25431
25472
|
}
|
|
25432
25473
|
}]);
|
|
25433
25474
|
}();
|
|
25434
|
-
exports.DefaultPickService = __decorate$
|
|
25475
|
+
exports.DefaultPickService = __decorate$17([injectable(), __param$A(0, inject(ContributionProvider)), __param$A(0, named(PickItemInterceptor)), __metadata$S("design:paramtypes", [Object])], exports.DefaultPickService);
|
|
25435
25476
|
|
|
25436
|
-
var __decorate$
|
|
25477
|
+
var __decorate$16 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25437
25478
|
var d,
|
|
25438
25479
|
c = arguments.length,
|
|
25439
25480
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25440
25481
|
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
25482
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25442
25483
|
},
|
|
25443
|
-
__metadata$
|
|
25484
|
+
__metadata$R = undefined && undefined.__metadata || function (k, v) {
|
|
25444
25485
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25445
25486
|
};
|
|
25446
25487
|
exports.DefaultGlobalPickerService = /*#__PURE__*/function () {
|
|
@@ -25519,7 +25560,7 @@
|
|
|
25519
25560
|
}
|
|
25520
25561
|
}]);
|
|
25521
25562
|
}();
|
|
25522
|
-
exports.DefaultGlobalPickerService = __decorate$
|
|
25563
|
+
exports.DefaultGlobalPickerService = __decorate$16([injectable(), __metadata$R("design:paramtypes", [])], exports.DefaultGlobalPickerService);
|
|
25523
25564
|
|
|
25524
25565
|
function simplifyRadialDist(points, sqTolerance) {
|
|
25525
25566
|
var deltaX,
|
|
@@ -25830,7 +25871,7 @@
|
|
|
25830
25871
|
loadPolygonModule || (loadPolygonModule = !0, bind(PolygonRender).to(exports.DefaultCanvasPolygonRender).inSingletonScope(), bind(GraphicRender).toService(PolygonRender), bind(PolygonRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, PolygonRenderContribution));
|
|
25831
25872
|
});
|
|
25832
25873
|
|
|
25833
|
-
var __decorate$
|
|
25874
|
+
var __decorate$15 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25834
25875
|
var d,
|
|
25835
25876
|
c = arguments.length,
|
|
25836
25877
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -25866,21 +25907,21 @@
|
|
|
25866
25907
|
}
|
|
25867
25908
|
}]);
|
|
25868
25909
|
}();
|
|
25869
|
-
DefaultCanvasGlyphRender = __decorate$
|
|
25910
|
+
DefaultCanvasGlyphRender = __decorate$15([injectable()], DefaultCanvasGlyphRender);
|
|
25870
25911
|
|
|
25871
25912
|
var loadGlyphModule = !1;
|
|
25872
25913
|
var glyphModule = new ContainerModule(function (bind) {
|
|
25873
25914
|
loadGlyphModule || (loadGlyphModule = !0, bind(GlyphRender).to(DefaultCanvasGlyphRender).inSingletonScope(), bind(GraphicRender).toService(GlyphRender));
|
|
25874
25915
|
});
|
|
25875
25916
|
|
|
25876
|
-
var __decorate$
|
|
25917
|
+
var __decorate$14 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25877
25918
|
var d,
|
|
25878
25919
|
c = arguments.length,
|
|
25879
25920
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
25880
25921
|
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
25922
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25882
25923
|
},
|
|
25883
|
-
__metadata$
|
|
25924
|
+
__metadata$Q = undefined && undefined.__metadata || function (k, v) {
|
|
25884
25925
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
25885
25926
|
};
|
|
25886
25927
|
var DefaultCanvasRichTextRender = /*#__PURE__*/function (_BaseRender) {
|
|
@@ -25956,7 +25997,7 @@
|
|
|
25956
25997
|
}
|
|
25957
25998
|
}]);
|
|
25958
25999
|
}(BaseRender);
|
|
25959
|
-
DefaultCanvasRichTextRender = __decorate$
|
|
26000
|
+
DefaultCanvasRichTextRender = __decorate$14([injectable(), __metadata$Q("design:paramtypes", [])], DefaultCanvasRichTextRender);
|
|
25960
26001
|
|
|
25961
26002
|
var loadRichtextModule = !1;
|
|
25962
26003
|
var richtextModule = new ContainerModule(function (bind) {
|
|
@@ -25968,7 +26009,7 @@
|
|
|
25968
26009
|
loadImageModule || (loadImageModule = !0, bind(ImageRender).to(exports.DefaultCanvasImageRender).inSingletonScope(), bind(GraphicRender).toService(ImageRender), bind(ImageRenderContribution).toService(exports.DefaultBaseInteractiveRenderContribution), bindContributionProvider(bind, ImageRenderContribution));
|
|
25969
26010
|
});
|
|
25970
26011
|
|
|
25971
|
-
var __decorate
|
|
26012
|
+
var __decorate$13 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
25972
26013
|
var d,
|
|
25973
26014
|
c = arguments.length,
|
|
25974
26015
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26112,14 +26153,14 @@
|
|
|
26112
26153
|
}
|
|
26113
26154
|
}]);
|
|
26114
26155
|
}(BaseRender);
|
|
26115
|
-
DefaultCanvasRect3dRender = __decorate
|
|
26156
|
+
DefaultCanvasRect3dRender = __decorate$13([injectable()], DefaultCanvasRect3dRender);
|
|
26116
26157
|
|
|
26117
26158
|
var loadRect3dModule = !1;
|
|
26118
26159
|
var rect3dModule = new ContainerModule(function (bind) {
|
|
26119
26160
|
loadRect3dModule || (loadRect3dModule = !0, bind(Rect3DRender).to(DefaultCanvasRect3dRender).inSingletonScope(), bind(GraphicRender).toService(Rect3DRender));
|
|
26120
26161
|
});
|
|
26121
26162
|
|
|
26122
|
-
var __decorate$
|
|
26163
|
+
var __decorate$12 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26123
26164
|
var d,
|
|
26124
26165
|
c = arguments.length,
|
|
26125
26166
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26249,14 +26290,14 @@
|
|
|
26249
26290
|
}
|
|
26250
26291
|
}]);
|
|
26251
26292
|
}(BaseRender);
|
|
26252
|
-
DefaultCanvasArc3DRender = __decorate$
|
|
26293
|
+
DefaultCanvasArc3DRender = __decorate$12([injectable()], DefaultCanvasArc3DRender);
|
|
26253
26294
|
|
|
26254
26295
|
var loadArc3dModule = !1;
|
|
26255
26296
|
var arc3dModule = new ContainerModule(function (bind) {
|
|
26256
26297
|
loadArc3dModule || (loadArc3dModule = !0, bind(Arc3dRender).to(DefaultCanvasArc3DRender).inSingletonScope(), bind(GraphicRender).toService(Arc3dRender));
|
|
26257
26298
|
});
|
|
26258
26299
|
|
|
26259
|
-
var __decorate$
|
|
26300
|
+
var __decorate$11 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
26260
26301
|
var d,
|
|
26261
26302
|
c = arguments.length,
|
|
26262
26303
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -26379,7 +26420,7 @@
|
|
|
26379
26420
|
}
|
|
26380
26421
|
}]);
|
|
26381
26422
|
}(BaseRender);
|
|
26382
|
-
DefaultCanvasPyramid3dRender = __decorate$
|
|
26423
|
+
DefaultCanvasPyramid3dRender = __decorate$11([injectable()], DefaultCanvasPyramid3dRender);
|
|
26383
26424
|
|
|
26384
26425
|
var loadPyramid3dModule = !1;
|
|
26385
26426
|
var pyramid3dModule = new ContainerModule(function (bind) {
|
|
@@ -28306,17 +28347,17 @@
|
|
|
28306
28347
|
fixedDecimalPlaceDigits: void 0
|
|
28307
28348
|
};
|
|
28308
28349
|
|
|
28309
|
-
var __decorate$
|
|
28350
|
+
var __decorate$10 = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28310
28351
|
var d,
|
|
28311
28352
|
c = arguments.length,
|
|
28312
28353
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28313
28354
|
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
28355
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28315
28356
|
},
|
|
28316
|
-
__metadata$
|
|
28357
|
+
__metadata$P = undefined && undefined.__metadata || function (k, v) {
|
|
28317
28358
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28318
28359
|
},
|
|
28319
|
-
__param$
|
|
28360
|
+
__param$z = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28320
28361
|
return function (target, key) {
|
|
28321
28362
|
decorator(target, key, paramIndex);
|
|
28322
28363
|
};
|
|
@@ -28436,9 +28477,9 @@
|
|
|
28436
28477
|
}
|
|
28437
28478
|
}]);
|
|
28438
28479
|
}();
|
|
28439
|
-
RoughCanvasArcRender = __decorate$
|
|
28480
|
+
RoughCanvasArcRender = __decorate$10([injectable(), __param$z(0, inject(exports.DefaultCanvasArcRender)), __metadata$P("design:paramtypes", [Object])], RoughCanvasArcRender);
|
|
28440
28481
|
|
|
28441
|
-
var __decorate
|
|
28482
|
+
var __decorate$$ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28442
28483
|
var d,
|
|
28443
28484
|
c = arguments.length,
|
|
28444
28485
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28540,19 +28581,19 @@
|
|
|
28540
28581
|
}
|
|
28541
28582
|
}]);
|
|
28542
28583
|
}(exports.DefaultCanvasAreaRender);
|
|
28543
|
-
RoughCanvasAreaRender = __decorate
|
|
28584
|
+
RoughCanvasAreaRender = __decorate$$([injectable()], RoughCanvasAreaRender);
|
|
28544
28585
|
|
|
28545
|
-
var __decorate$
|
|
28586
|
+
var __decorate$_ = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28546
28587
|
var d,
|
|
28547
28588
|
c = arguments.length,
|
|
28548
28589
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28549
28590
|
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
28591
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28551
28592
|
},
|
|
28552
|
-
__metadata$
|
|
28593
|
+
__metadata$O = undefined && undefined.__metadata || function (k, v) {
|
|
28553
28594
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28554
28595
|
},
|
|
28555
|
-
__param$
|
|
28596
|
+
__param$y = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28556
28597
|
return function (target, key) {
|
|
28557
28598
|
decorator(target, key, paramIndex);
|
|
28558
28599
|
};
|
|
@@ -28600,9 +28641,9 @@
|
|
|
28600
28641
|
}
|
|
28601
28642
|
}]);
|
|
28602
28643
|
}();
|
|
28603
|
-
RoughCanvasCircleRender = __decorate$
|
|
28644
|
+
RoughCanvasCircleRender = __decorate$_([injectable(), __param$y(0, inject(exports.DefaultCanvasCircleRender)), __metadata$O("design:paramtypes", [Object])], RoughCanvasCircleRender);
|
|
28604
28645
|
|
|
28605
|
-
var __decorate$
|
|
28646
|
+
var __decorate$Z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28606
28647
|
var d,
|
|
28607
28648
|
c = arguments.length,
|
|
28608
28649
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -28705,19 +28746,19 @@
|
|
|
28705
28746
|
}
|
|
28706
28747
|
}]);
|
|
28707
28748
|
}(exports.DefaultCanvasLineRender);
|
|
28708
|
-
RoughCanvasLineRender = __decorate$
|
|
28749
|
+
RoughCanvasLineRender = __decorate$Z([injectable()], RoughCanvasLineRender);
|
|
28709
28750
|
|
|
28710
|
-
var __decorate$
|
|
28751
|
+
var __decorate$Y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28711
28752
|
var d,
|
|
28712
28753
|
c = arguments.length,
|
|
28713
28754
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28714
28755
|
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
28756
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28716
28757
|
},
|
|
28717
|
-
__metadata$
|
|
28758
|
+
__metadata$N = undefined && undefined.__metadata || function (k, v) {
|
|
28718
28759
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28719
28760
|
},
|
|
28720
|
-
__param$
|
|
28761
|
+
__param$x = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28721
28762
|
return function (target, key) {
|
|
28722
28763
|
decorator(target, key, paramIndex);
|
|
28723
28764
|
};
|
|
@@ -28822,19 +28863,19 @@
|
|
|
28822
28863
|
}
|
|
28823
28864
|
}]);
|
|
28824
28865
|
}();
|
|
28825
|
-
RoughCanvasPathRender = __decorate$
|
|
28866
|
+
RoughCanvasPathRender = __decorate$Y([injectable(), __param$x(0, inject(exports.DefaultCanvasPathRender)), __metadata$N("design:paramtypes", [Object])], RoughCanvasPathRender);
|
|
28826
28867
|
|
|
28827
|
-
var __decorate$
|
|
28868
|
+
var __decorate$X = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28828
28869
|
var d,
|
|
28829
28870
|
c = arguments.length,
|
|
28830
28871
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28831
28872
|
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
28873
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28833
28874
|
},
|
|
28834
|
-
__metadata$
|
|
28875
|
+
__metadata$M = undefined && undefined.__metadata || function (k, v) {
|
|
28835
28876
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28836
28877
|
},
|
|
28837
|
-
__param$
|
|
28878
|
+
__param$w = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28838
28879
|
return function (target, key) {
|
|
28839
28880
|
decorator(target, key, paramIndex);
|
|
28840
28881
|
};
|
|
@@ -28960,19 +29001,19 @@
|
|
|
28960
29001
|
}
|
|
28961
29002
|
}]);
|
|
28962
29003
|
}();
|
|
28963
|
-
RoughCanvasRectRender = __decorate$
|
|
29004
|
+
RoughCanvasRectRender = __decorate$X([injectable(), __param$w(0, inject(exports.DefaultCanvasRectRender)), __metadata$M("design:paramtypes", [Object])], RoughCanvasRectRender);
|
|
28964
29005
|
|
|
28965
|
-
var __decorate$
|
|
29006
|
+
var __decorate$W = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28966
29007
|
var d,
|
|
28967
29008
|
c = arguments.length,
|
|
28968
29009
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
28969
29010
|
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
29011
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
28971
29012
|
},
|
|
28972
|
-
__metadata$
|
|
29013
|
+
__metadata$L = undefined && undefined.__metadata || function (k, v) {
|
|
28973
29014
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
28974
29015
|
},
|
|
28975
|
-
__param$
|
|
29016
|
+
__param$v = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
28976
29017
|
return function (target, key) {
|
|
28977
29018
|
decorator(target, key, paramIndex);
|
|
28978
29019
|
};
|
|
@@ -29095,12 +29136,42 @@
|
|
|
29095
29136
|
}
|
|
29096
29137
|
}]);
|
|
29097
29138
|
}(BaseRender);
|
|
29098
|
-
RoughCanvasSymbolRender = __decorate$
|
|
29139
|
+
RoughCanvasSymbolRender = __decorate$W([injectable(), __param$v(0, inject(exports.DefaultCanvasSymbolRender)), __metadata$L("design:paramtypes", [Object])], RoughCanvasSymbolRender);
|
|
29099
29140
|
|
|
29100
29141
|
var _roughModule = new ContainerModule(function (bind) {
|
|
29101
29142
|
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
29143
|
});
|
|
29103
29144
|
|
|
29145
|
+
var MathPickerContribution = Symbol["for"]("MathPickerContribution");
|
|
29146
|
+
var MathArcPicker = Symbol["for"]("MathArcPicker");
|
|
29147
|
+
var MathAreaPicker = Symbol["for"]("MathAreaPicker");
|
|
29148
|
+
var MathCirclePicker = Symbol["for"]("MathCirclePicker");
|
|
29149
|
+
var MathImagePicker = Symbol["for"]("MathImagePicker");
|
|
29150
|
+
var MathLinePicker = Symbol["for"]("MathLinePicker");
|
|
29151
|
+
var MathPathPicker = Symbol["for"]("MathPathPicker");
|
|
29152
|
+
var MathRectPicker = Symbol["for"]("MathRectPicker");
|
|
29153
|
+
var MathSymbolPicker = Symbol["for"]("MathSymbolPicker");
|
|
29154
|
+
var MathTextPicker = Symbol["for"]("MathTextPicker");
|
|
29155
|
+
var MathPolygonPicker = Symbol["for"]("MathPolygonPicker");
|
|
29156
|
+
var MathGlyphPicker = Symbol["for"]("MathGlyphPicker");
|
|
29157
|
+
var CanvasArcPicker = Symbol["for"]("CanvasArcPicker");
|
|
29158
|
+
var CanvasArc3dPicker = Symbol["for"]("CanvasArc3dPicker");
|
|
29159
|
+
var CanvasAreaPicker = Symbol["for"]("CanvasAreaPicker");
|
|
29160
|
+
var CanvasCirclePicker = Symbol["for"]("CanvasCirclePicker");
|
|
29161
|
+
var CanvasImagePicker = Symbol["for"]("CanvasImagePicker");
|
|
29162
|
+
var CanvasLinePicker = Symbol["for"]("CanvasLinePicker");
|
|
29163
|
+
var CanvasPathPicker = Symbol["for"]("CanvasPathPicker");
|
|
29164
|
+
var CanvasRectPicker = Symbol["for"]("CanvasRectPicker");
|
|
29165
|
+
var CanvasRect3dPicker = Symbol["for"]("CanvasRect3dPicker");
|
|
29166
|
+
var CanvasSymbolPicker = Symbol["for"]("CanvasSymbolPicker");
|
|
29167
|
+
var CanvasTextPicker = Symbol["for"]("CanvasTextPicker");
|
|
29168
|
+
var CanvasPolygonPicker = Symbol["for"]("CanvasPolygonPicker");
|
|
29169
|
+
var CanvasPyramid3dPicker = Symbol["for"]("CanvasPyramid3dPicker");
|
|
29170
|
+
var CanvasRichTextPicker = Symbol["for"]("CanvasRichTextPicker");
|
|
29171
|
+
var CanvasGlyphPicker = Symbol["for"]("CanvasGlyphPicker");
|
|
29172
|
+
var CanvasGroupPicker = Symbol["for"]("CanvasGroupPicker");
|
|
29173
|
+
var CanvasPickerContribution = Symbol["for"]("CanvasPickerContribution");
|
|
29174
|
+
|
|
29104
29175
|
var REACT_TO_CANOPUS_EVENTS = {
|
|
29105
29176
|
onPointerDown: "pointerdown",
|
|
29106
29177
|
onPointerUp: "pointerup",
|
|
@@ -29601,14 +29672,14 @@
|
|
|
29601
29672
|
}]);
|
|
29602
29673
|
}(EventEmitter);
|
|
29603
29674
|
|
|
29604
|
-
var __decorate$
|
|
29675
|
+
var __decorate$V = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29605
29676
|
var d,
|
|
29606
29677
|
c = arguments.length,
|
|
29607
29678
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
29608
29679
|
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
29680
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
29610
29681
|
},
|
|
29611
|
-
__metadata$
|
|
29682
|
+
__metadata$K = undefined && undefined.__metadata || function (k, v) {
|
|
29612
29683
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
29613
29684
|
};
|
|
29614
29685
|
var outP = [0, 0, 0],
|
|
@@ -29647,7 +29718,7 @@
|
|
|
29647
29718
|
}), this._clearShadowStyle = !1, this._clearFilterStyle = !1, this._clearGlobalCompositeOperationStyle = !1;
|
|
29648
29719
|
var context = canvas.nativeCanvas.getContext("2d");
|
|
29649
29720
|
if (!context) throw new Error("发生错误,获取2d上下文失败");
|
|
29650
|
-
this.nativeContext = context, this.canvas = canvas, this.matrix = new Matrix(1, 0, 0, 1, 0, 0), this.stack = [], this.dpr = dpr, this.applyedMatrix = new Matrix(1, 0, 0, 1, 0, 0), this._clearMatrix = new Matrix(1, 0, 0, 1, 0, 0);
|
|
29721
|
+
this.nativeContext = context, this.canvas = canvas, this.matrix = new Matrix(1, 0, 0, 1, 0, 0), this.stack = [], this.dpr = dpr, this.applyedMatrix = new Matrix(1, 0, 0, 1, 0, 0), this._clearMatrix = new Matrix(1, 0, 0, 1, 0, 0), this.baseGlobalAlpha = 1;
|
|
29651
29722
|
}
|
|
29652
29723
|
return _createClass(BrowserContext2d, [{
|
|
29653
29724
|
key: "fillStyle",
|
|
@@ -29671,7 +29742,7 @@
|
|
|
29671
29742
|
return this.nativeContext.globalAlpha;
|
|
29672
29743
|
},
|
|
29673
29744
|
set: function set(d) {
|
|
29674
|
-
this.nativeContext.globalAlpha = d;
|
|
29745
|
+
this.nativeContext.globalAlpha = d * this.baseGlobalAlpha;
|
|
29675
29746
|
}
|
|
29676
29747
|
}, {
|
|
29677
29748
|
key: "lineCap",
|
|
@@ -30177,7 +30248,7 @@
|
|
|
30177
30248
|
opacity = _attribute$opacity === void 0 ? defaultParams.opacity : _attribute$opacity,
|
|
30178
30249
|
_attribute$fill = attribute.fill,
|
|
30179
30250
|
fill = _attribute$fill === void 0 ? defaultParams.fill : _attribute$fill;
|
|
30180
|
-
fillOpacity > 1e-12 && opacity > 1e-12 ? (_context.globalAlpha = fillOpacity * opacity, _context.fillStyle = createColor(this, fill, params, offsetX, offsetY)) : _context.globalAlpha = fillOpacity * opacity;
|
|
30251
|
+
fillOpacity > 1e-12 && opacity > 1e-12 ? (_context.globalAlpha = fillOpacity * opacity * this.baseGlobalAlpha, _context.fillStyle = createColor(this, fill, params, offsetX, offsetY)) : _context.globalAlpha = fillOpacity * opacity * this.baseGlobalAlpha;
|
|
30181
30252
|
}
|
|
30182
30253
|
}, {
|
|
30183
30254
|
key: "setShadowBlendStyle",
|
|
@@ -30246,7 +30317,7 @@
|
|
|
30246
30317
|
lineCap = _attribute$lineCap === void 0 ? defaultParams.lineCap : _attribute$lineCap,
|
|
30247
30318
|
_attribute$miterLimit = attribute.miterLimit,
|
|
30248
30319
|
miterLimit = _attribute$miterLimit === void 0 ? defaultParams.miterLimit : _attribute$miterLimit;
|
|
30249
|
-
_context.globalAlpha = strokeOpacity * opacity, _context.lineWidth = getScaledStroke(this, lineWidth, this.dpr), _context.strokeStyle = createColor(this, stroke, params, offsetX, offsetY), _context.lineJoin = lineJoin, lineDash && _context.setLineDash(lineDash), _context.lineCap = lineCap, _context.miterLimit = miterLimit;
|
|
30320
|
+
_context.globalAlpha = strokeOpacity * opacity * this.baseGlobalAlpha, _context.lineWidth = getScaledStroke(this, lineWidth, this.dpr), _context.strokeStyle = createColor(this, stroke, params, offsetX, offsetY), _context.lineJoin = lineJoin, lineDash && _context.setLineDash(lineDash), _context.lineCap = lineCap, _context.miterLimit = miterLimit;
|
|
30250
30321
|
}
|
|
30251
30322
|
}
|
|
30252
30323
|
}, {
|
|
@@ -30305,16 +30376,16 @@
|
|
|
30305
30376
|
}
|
|
30306
30377
|
}]);
|
|
30307
30378
|
}();
|
|
30308
|
-
BrowserContext2d.env = "browser", BrowserContext2d = __decorate$
|
|
30379
|
+
BrowserContext2d.env = "browser", BrowserContext2d = __decorate$V([injectable(), __metadata$K("design:paramtypes", [Object, Number])], BrowserContext2d);
|
|
30309
30380
|
|
|
30310
|
-
var __decorate$
|
|
30381
|
+
var __decorate$U = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30311
30382
|
var d,
|
|
30312
30383
|
c = arguments.length,
|
|
30313
30384
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
30314
30385
|
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
30386
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30316
30387
|
},
|
|
30317
|
-
__metadata$
|
|
30388
|
+
__metadata$J = undefined && undefined.__metadata || function (k, v) {
|
|
30318
30389
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
30319
30390
|
};
|
|
30320
30391
|
var BrowserCanvas = /*#__PURE__*/function (_BaseCanvas) {
|
|
@@ -30394,7 +30465,7 @@
|
|
|
30394
30465
|
}
|
|
30395
30466
|
}]);
|
|
30396
30467
|
}(exports.BaseCanvas);
|
|
30397
|
-
BrowserCanvas.env = "browser", BrowserCanvas = __decorate$
|
|
30468
|
+
BrowserCanvas.env = "browser", BrowserCanvas = __decorate$U([injectable(), __metadata$J("design:paramtypes", [Object])], BrowserCanvas);
|
|
30398
30469
|
|
|
30399
30470
|
function createModule(CanvasConstructor, ContextConstructor) {
|
|
30400
30471
|
return new ContainerModule(function (bind) {
|
|
@@ -30412,47 +30483,17 @@
|
|
|
30412
30483
|
|
|
30413
30484
|
var browserCanvasModule = createModule(BrowserCanvas, BrowserContext2d);
|
|
30414
30485
|
|
|
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) {
|
|
30486
|
+
var __decorate$T = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30446
30487
|
var d,
|
|
30447
30488
|
c = arguments.length,
|
|
30448
30489
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
30449
30490
|
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
30491
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30451
30492
|
},
|
|
30452
|
-
__metadata$
|
|
30493
|
+
__metadata$I = undefined && undefined.__metadata || function (k, v) {
|
|
30453
30494
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
30454
30495
|
},
|
|
30455
|
-
__param$
|
|
30496
|
+
__param$u = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
30456
30497
|
return function (target, key) {
|
|
30457
30498
|
decorator(target, key, paramIndex);
|
|
30458
30499
|
};
|
|
@@ -30495,9 +30536,11 @@
|
|
|
30495
30536
|
}
|
|
30496
30537
|
var picker = this.pickerMap.get(graphic.numberType);
|
|
30497
30538
|
if (!picker) return null;
|
|
30498
|
-
var
|
|
30539
|
+
var pd = picker.contains(graphic, point, params),
|
|
30540
|
+
g = pd ? graphic : null,
|
|
30499
30541
|
data = {
|
|
30500
|
-
graphic: g
|
|
30542
|
+
graphic: g,
|
|
30543
|
+
params: pd
|
|
30501
30544
|
};
|
|
30502
30545
|
if (g) return data;
|
|
30503
30546
|
if (this.InterceptorContributions.length) for (var _i = 0; _i < this.InterceptorContributions.length; _i++) {
|
|
@@ -30513,9 +30556,9 @@
|
|
|
30513
30556
|
}
|
|
30514
30557
|
}]);
|
|
30515
30558
|
}(exports.DefaultPickService);
|
|
30516
|
-
DefaultCanvasPickerService = __decorate$
|
|
30559
|
+
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
30560
|
|
|
30518
|
-
var __decorate$
|
|
30561
|
+
var __decorate$S = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30519
30562
|
var d,
|
|
30520
30563
|
c = arguments.length,
|
|
30521
30564
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -30534,7 +30577,7 @@
|
|
|
30534
30577
|
}
|
|
30535
30578
|
}]);
|
|
30536
30579
|
}();
|
|
30537
|
-
DefaultCanvasGroupPicker = __decorate$
|
|
30580
|
+
DefaultCanvasGroupPicker = __decorate$S([injectable()], DefaultCanvasGroupPicker);
|
|
30538
30581
|
|
|
30539
30582
|
var m$1 = new ContainerModule(function (bind, unbind, isBound, rebind) {
|
|
30540
30583
|
m$1.__vloaded || (m$1.__vloaded = !0, bind(CanvasGroupPicker).to(DefaultCanvasGroupPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGroupPicker), bindContributionProvider(bind, CanvasPickerContribution));
|
|
@@ -30550,14 +30593,14 @@
|
|
|
30550
30593
|
}
|
|
30551
30594
|
|
|
30552
30595
|
var _BrowserWindowHandlerContribution_,
|
|
30553
|
-
__decorate$
|
|
30596
|
+
__decorate$R = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30554
30597
|
var d,
|
|
30555
30598
|
c = arguments.length,
|
|
30556
30599
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
30557
30600
|
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
30601
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30559
30602
|
},
|
|
30560
|
-
__metadata$
|
|
30603
|
+
__metadata$H = undefined && undefined.__metadata || function (k, v) {
|
|
30561
30604
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
30562
30605
|
};
|
|
30563
30606
|
var BrowserWindowHandlerContribution = _BrowserWindowHandlerContribution_ = /*#__PURE__*/function (_BaseWindowHandlerCon) {
|
|
@@ -30775,21 +30818,21 @@
|
|
|
30775
30818
|
}
|
|
30776
30819
|
}]);
|
|
30777
30820
|
}(exports.BaseWindowHandlerContribution);
|
|
30778
|
-
BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = _BrowserWindowHandlerContribution_ = __decorate$
|
|
30821
|
+
BrowserWindowHandlerContribution.env = "browser", BrowserWindowHandlerContribution.idprefix = "visactor_window", BrowserWindowHandlerContribution.prefix_count = 0, BrowserWindowHandlerContribution = _BrowserWindowHandlerContribution_ = __decorate$R([injectable(), __metadata$H("design:paramtypes", [])], BrowserWindowHandlerContribution);
|
|
30779
30822
|
var browserWindowModule = new ContainerModule(function (bind) {
|
|
30780
30823
|
bind(BrowserWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(function (ctx) {
|
|
30781
30824
|
return ctx.container.get(BrowserWindowHandlerContribution);
|
|
30782
30825
|
}).whenTargetNamed(BrowserWindowHandlerContribution.env);
|
|
30783
30826
|
});
|
|
30784
30827
|
|
|
30785
|
-
var __decorate$
|
|
30828
|
+
var __decorate$Q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
30786
30829
|
var d,
|
|
30787
30830
|
c = arguments.length,
|
|
30788
30831
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
30789
30832
|
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
30833
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
30791
30834
|
},
|
|
30792
|
-
__metadata$
|
|
30835
|
+
__metadata$G = undefined && undefined.__metadata || function (k, v) {
|
|
30793
30836
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
30794
30837
|
};
|
|
30795
30838
|
var DynamicB = /*#__PURE__*/function () {
|
|
@@ -31057,7 +31100,7 @@
|
|
|
31057
31100
|
}
|
|
31058
31101
|
}]);
|
|
31059
31102
|
}(exports.BaseEnvContribution);
|
|
31060
|
-
BrowserEnvContribution = __decorate$
|
|
31103
|
+
BrowserEnvContribution = __decorate$Q([injectable(), __metadata$G("design:paramtypes", [])], BrowserEnvContribution);
|
|
31061
31104
|
|
|
31062
31105
|
var browserEnvModule = new ContainerModule(function (bind) {
|
|
31063
31106
|
browserEnvModule.isBrowserBound || (browserEnvModule.isBrowserBound = !0, bind(BrowserEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(BrowserEnvContribution));
|
|
@@ -31072,7 +31115,7 @@
|
|
|
31072
31115
|
loadBrowserEnv(container);
|
|
31073
31116
|
}
|
|
31074
31117
|
|
|
31075
|
-
var __decorate$
|
|
31118
|
+
var __decorate$P = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31076
31119
|
var d,
|
|
31077
31120
|
c = arguments.length,
|
|
31078
31121
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -31091,7 +31134,7 @@
|
|
|
31091
31134
|
return this._globalAlpha;
|
|
31092
31135
|
},
|
|
31093
31136
|
set: function set(ga) {
|
|
31094
|
-
this.nativeContext.globalAlpha = ga, this._globalAlpha = ga;
|
|
31137
|
+
this.nativeContext.globalAlpha = ga * this.baseGlobalAlpha, this._globalAlpha = ga * this.baseGlobalAlpha;
|
|
31095
31138
|
}
|
|
31096
31139
|
}, {
|
|
31097
31140
|
key: "getImageData",
|
|
@@ -31133,16 +31176,16 @@
|
|
|
31133
31176
|
}
|
|
31134
31177
|
}]);
|
|
31135
31178
|
}(BrowserContext2d);
|
|
31136
|
-
FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$
|
|
31179
|
+
FeishuContext2d.env = "feishu", FeishuContext2d = __decorate$P([injectable()], FeishuContext2d);
|
|
31137
31180
|
|
|
31138
|
-
var __decorate$
|
|
31181
|
+
var __decorate$O = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31139
31182
|
var d,
|
|
31140
31183
|
c = arguments.length,
|
|
31141
31184
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
31142
31185
|
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
31186
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31144
31187
|
},
|
|
31145
|
-
__metadata$
|
|
31188
|
+
__metadata$F = undefined && undefined.__metadata || function (k, v) {
|
|
31146
31189
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
31147
31190
|
};
|
|
31148
31191
|
var FeishuCanvas = /*#__PURE__*/function (_BaseCanvas) {
|
|
@@ -31161,26 +31204,26 @@
|
|
|
31161
31204
|
value: function release() {}
|
|
31162
31205
|
}]);
|
|
31163
31206
|
}(exports.BaseCanvas);
|
|
31164
|
-
FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$
|
|
31207
|
+
FeishuCanvas.env = "feishu", FeishuCanvas = __decorate$O([injectable(), __metadata$F("design:paramtypes", [Object])], FeishuCanvas);
|
|
31165
31208
|
|
|
31166
31209
|
var feishuCanvasModule = createModule(FeishuCanvas, FeishuContext2d);
|
|
31167
31210
|
|
|
31168
|
-
var __decorate$
|
|
31211
|
+
var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31169
31212
|
var d,
|
|
31170
31213
|
c = arguments.length,
|
|
31171
31214
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
31172
31215
|
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
31216
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31174
31217
|
},
|
|
31175
|
-
__metadata$
|
|
31218
|
+
__metadata$E = undefined && undefined.__metadata || function (k, v) {
|
|
31176
31219
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
31177
31220
|
},
|
|
31178
|
-
__param$
|
|
31221
|
+
__param$t = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
31179
31222
|
return function (target, key) {
|
|
31180
31223
|
decorator(target, key, paramIndex);
|
|
31181
31224
|
};
|
|
31182
31225
|
};
|
|
31183
|
-
var MiniAppEventManager$
|
|
31226
|
+
var MiniAppEventManager$4 = /*#__PURE__*/function () {
|
|
31184
31227
|
function MiniAppEventManager() {
|
|
31185
31228
|
_classCallCheck(this, MiniAppEventManager);
|
|
31186
31229
|
this.cache = {};
|
|
@@ -31213,7 +31256,7 @@
|
|
|
31213
31256
|
function FeishuWindowHandlerContribution(global) {
|
|
31214
31257
|
var _this;
|
|
31215
31258
|
_classCallCheck(this, FeishuWindowHandlerContribution);
|
|
31216
|
-
_this = _callSuper(this, FeishuWindowHandlerContribution), _this.global = global, _this.type = "feishu", _this.eventManager = new MiniAppEventManager$
|
|
31259
|
+
_this = _callSuper(this, FeishuWindowHandlerContribution), _this.global = global, _this.type = "feishu", _this.eventManager = new MiniAppEventManager$4();
|
|
31217
31260
|
return _this;
|
|
31218
31261
|
}
|
|
31219
31262
|
_inherits(FeishuWindowHandlerContribution, _BaseWindowHandlerCon);
|
|
@@ -31364,24 +31407,24 @@
|
|
|
31364
31407
|
}
|
|
31365
31408
|
}]);
|
|
31366
31409
|
}(exports.BaseWindowHandlerContribution);
|
|
31367
|
-
FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$
|
|
31410
|
+
FeishuWindowHandlerContribution.env = "feishu", FeishuWindowHandlerContribution = __decorate$N([injectable(), __param$t(0, inject(VGlobal)), __metadata$E("design:paramtypes", [Object])], FeishuWindowHandlerContribution);
|
|
31368
31411
|
var feishuWindowModule = new ContainerModule(function (bind) {
|
|
31369
31412
|
bind(FeishuWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(function (ctx) {
|
|
31370
31413
|
return ctx.container.get(FeishuWindowHandlerContribution);
|
|
31371
31414
|
}).whenTargetNamed(FeishuWindowHandlerContribution.env);
|
|
31372
31415
|
});
|
|
31373
31416
|
|
|
31374
|
-
var __decorate$
|
|
31417
|
+
var __decorate$M = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31375
31418
|
var d,
|
|
31376
31419
|
c = arguments.length,
|
|
31377
31420
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
31378
31421
|
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
31422
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31380
31423
|
},
|
|
31381
|
-
__metadata$
|
|
31424
|
+
__metadata$D = undefined && undefined.__metadata || function (k, v) {
|
|
31382
31425
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
31383
31426
|
},
|
|
31384
|
-
__param$
|
|
31427
|
+
__param$s = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
31385
31428
|
return function (target, key) {
|
|
31386
31429
|
decorator(target, key, paramIndex);
|
|
31387
31430
|
};
|
|
@@ -31415,14 +31458,16 @@
|
|
|
31415
31458
|
if (!1 === graphic.attribute.pickable) return null;
|
|
31416
31459
|
var picker = this.pickerMap.get(graphic.numberType);
|
|
31417
31460
|
if (!picker) return null;
|
|
31418
|
-
var
|
|
31461
|
+
var pd = picker.contains(graphic, point, params),
|
|
31462
|
+
g = pd ? graphic : null;
|
|
31419
31463
|
return g ? {
|
|
31420
|
-
graphic: g
|
|
31464
|
+
graphic: g,
|
|
31465
|
+
params: pd
|
|
31421
31466
|
} : null;
|
|
31422
31467
|
}
|
|
31423
31468
|
}]);
|
|
31424
31469
|
}(exports.DefaultPickService);
|
|
31425
|
-
DefaultMathPickerService = __decorate$
|
|
31470
|
+
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
31471
|
|
|
31427
31472
|
var m = new ContainerModule(function (bind) {
|
|
31428
31473
|
m.__vloaded || (m.__vloaded = !0, bindContributionProvider(bind, MathPickerContribution));
|
|
@@ -31534,17 +31579,17 @@
|
|
|
31534
31579
|
}]);
|
|
31535
31580
|
}();
|
|
31536
31581
|
|
|
31537
|
-
var __decorate$
|
|
31582
|
+
var __decorate$L = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31538
31583
|
var d,
|
|
31539
31584
|
c = arguments.length,
|
|
31540
31585
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
31541
31586
|
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
31587
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31543
31588
|
},
|
|
31544
|
-
__metadata$
|
|
31589
|
+
__metadata$C = undefined && undefined.__metadata || function (k, v) {
|
|
31545
31590
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
31546
31591
|
};
|
|
31547
|
-
function makeUpCanvas$
|
|
31592
|
+
function makeUpCanvas$4(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, pixelRatio) {
|
|
31548
31593
|
var dpr = null != pixelRatio ? pixelRatio : tt.getSystemInfoSync().pixelRatio;
|
|
31549
31594
|
canvasIdLists.forEach(function (id, i) {
|
|
31550
31595
|
var ctx = tt.createCanvasContext(id),
|
|
@@ -31579,7 +31624,7 @@
|
|
|
31579
31624
|
}, {
|
|
31580
31625
|
key: "configure",
|
|
31581
31626
|
value: function configure(service, params) {
|
|
31582
|
-
service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$
|
|
31627
|
+
service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$4(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, params.pixelRatio));
|
|
31583
31628
|
}
|
|
31584
31629
|
}, {
|
|
31585
31630
|
key: "loadImage",
|
|
@@ -31666,7 +31711,7 @@
|
|
|
31666
31711
|
}
|
|
31667
31712
|
}]);
|
|
31668
31713
|
}(exports.BaseEnvContribution);
|
|
31669
|
-
FeishuEnvContribution = __decorate$
|
|
31714
|
+
FeishuEnvContribution = __decorate$L([injectable(), __metadata$C("design:paramtypes", [])], FeishuEnvContribution);
|
|
31670
31715
|
|
|
31671
31716
|
var feishuEnvModule = new ContainerModule(function (bind) {
|
|
31672
31717
|
feishuEnvModule.isFeishuBound || (feishuEnvModule.isFeishuBound = !0, bind(FeishuEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(FeishuEnvContribution));
|
|
@@ -31681,7 +31726,7 @@
|
|
|
31681
31726
|
loadFeishuEnv(container);
|
|
31682
31727
|
}
|
|
31683
31728
|
|
|
31684
|
-
var __decorate$
|
|
31729
|
+
var __decorate$K = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31685
31730
|
var d,
|
|
31686
31731
|
c = arguments.length,
|
|
31687
31732
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -31700,7 +31745,7 @@
|
|
|
31700
31745
|
return this._globalAlpha;
|
|
31701
31746
|
},
|
|
31702
31747
|
set: function set(ga) {
|
|
31703
|
-
this.nativeContext.globalAlpha = ga, this._globalAlpha = ga;
|
|
31748
|
+
this.nativeContext.globalAlpha = ga * this.baseGlobalAlpha, this._globalAlpha = ga * this.baseGlobalAlpha;
|
|
31704
31749
|
}
|
|
31705
31750
|
}, {
|
|
31706
31751
|
key: "setLineDash",
|
|
@@ -31735,7 +31780,7 @@
|
|
|
31735
31780
|
lineCap = _attribute$lineCap === void 0 ? defaultParams.lineCap : _attribute$lineCap,
|
|
31736
31781
|
_attribute$miterLimit = attribute.miterLimit,
|
|
31737
31782
|
miterLimit = _attribute$miterLimit === void 0 ? defaultParams.miterLimit : _attribute$miterLimit;
|
|
31738
|
-
_context.globalAlpha = strokeOpacity * opacity, _context.lineWidth = getScaledStroke(this, lineWidth, this.dpr), _context.strokeStyle = createColor(this, stroke, params, offsetX, offsetY), _context.lineJoin = lineJoin, 0 === lineDash[0] && 0 === lineDash[1] || lineDash && _context.setLineDash(lineDash), _context.lineCap = lineCap, _context.miterLimit = miterLimit;
|
|
31783
|
+
_context.globalAlpha = strokeOpacity * opacity * this.baseGlobalAlpha, _context.lineWidth = getScaledStroke(this, lineWidth, this.dpr), _context.strokeStyle = createColor(this, stroke, params, offsetX, offsetY), _context.lineJoin = lineJoin, 0 === lineDash[0] && 0 === lineDash[1] || lineDash && _context.setLineDash(lineDash), _context.lineCap = lineCap, _context.miterLimit = miterLimit;
|
|
31739
31784
|
}
|
|
31740
31785
|
}
|
|
31741
31786
|
}, {
|
|
@@ -31763,16 +31808,16 @@
|
|
|
31763
31808
|
}
|
|
31764
31809
|
}]);
|
|
31765
31810
|
}(BrowserContext2d);
|
|
31766
|
-
LynxContext2d.env = "lynx", LynxContext2d = __decorate$
|
|
31811
|
+
LynxContext2d.env = "lynx", LynxContext2d = __decorate$K([injectable()], LynxContext2d);
|
|
31767
31812
|
|
|
31768
|
-
var __decorate$
|
|
31813
|
+
var __decorate$J = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31769
31814
|
var d,
|
|
31770
31815
|
c = arguments.length,
|
|
31771
31816
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
31772
31817
|
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
31818
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31774
31819
|
},
|
|
31775
|
-
__metadata$
|
|
31820
|
+
__metadata$B = undefined && undefined.__metadata || function (k, v) {
|
|
31776
31821
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
31777
31822
|
};
|
|
31778
31823
|
var LynxCanvas = /*#__PURE__*/function (_BaseCanvas) {
|
|
@@ -31797,24 +31842,24 @@
|
|
|
31797
31842
|
value: function release() {}
|
|
31798
31843
|
}]);
|
|
31799
31844
|
}(exports.BaseCanvas);
|
|
31800
|
-
LynxCanvas.env = "lynx", LynxCanvas = __decorate$
|
|
31845
|
+
LynxCanvas.env = "lynx", LynxCanvas = __decorate$J([injectable(), __metadata$B("design:paramtypes", [Object])], LynxCanvas);
|
|
31801
31846
|
|
|
31802
|
-
var __decorate$
|
|
31847
|
+
var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
31803
31848
|
var d,
|
|
31804
31849
|
c = arguments.length,
|
|
31805
31850
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
31806
31851
|
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
31852
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
31808
31853
|
},
|
|
31809
|
-
__metadata$
|
|
31854
|
+
__metadata$A = undefined && undefined.__metadata || function (k, v) {
|
|
31810
31855
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
31811
31856
|
},
|
|
31812
|
-
__param$
|
|
31857
|
+
__param$r = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
31813
31858
|
return function (target, key) {
|
|
31814
31859
|
decorator(target, key, paramIndex);
|
|
31815
31860
|
};
|
|
31816
31861
|
};
|
|
31817
|
-
var MiniAppEventManager$
|
|
31862
|
+
var MiniAppEventManager$3 = /*#__PURE__*/function () {
|
|
31818
31863
|
function MiniAppEventManager() {
|
|
31819
31864
|
_classCallCheck(this, MiniAppEventManager);
|
|
31820
31865
|
this.cache = {};
|
|
@@ -31847,7 +31892,7 @@
|
|
|
31847
31892
|
function LynxWindowHandlerContribution(global) {
|
|
31848
31893
|
var _this;
|
|
31849
31894
|
_classCallCheck(this, LynxWindowHandlerContribution);
|
|
31850
|
-
_this = _callSuper(this, LynxWindowHandlerContribution), _this.global = global, _this.type = "lynx", _this.eventManager = new MiniAppEventManager$
|
|
31895
|
+
_this = _callSuper(this, LynxWindowHandlerContribution), _this.global = global, _this.type = "lynx", _this.eventManager = new MiniAppEventManager$3();
|
|
31851
31896
|
return _this;
|
|
31852
31897
|
}
|
|
31853
31898
|
_inherits(LynxWindowHandlerContribution, _BaseWindowHandlerCon);
|
|
@@ -32000,7 +32045,7 @@
|
|
|
32000
32045
|
}
|
|
32001
32046
|
}]);
|
|
32002
32047
|
}(exports.BaseWindowHandlerContribution);
|
|
32003
|
-
LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$
|
|
32048
|
+
LynxWindowHandlerContribution.env = "lynx", LynxWindowHandlerContribution = __decorate$I([injectable(), __param$r(0, inject(VGlobal)), __metadata$A("design:paramtypes", [Object])], LynxWindowHandlerContribution);
|
|
32004
32049
|
var lynxWindowModule = new ContainerModule(function (bind) {
|
|
32005
32050
|
bind(LynxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(function (ctx) {
|
|
32006
32051
|
return ctx.container.get(LynxWindowHandlerContribution);
|
|
@@ -32009,21 +32054,21 @@
|
|
|
32009
32054
|
|
|
32010
32055
|
var lynxCanvasModule = createModule(LynxCanvas, LynxContext2d);
|
|
32011
32056
|
|
|
32012
|
-
var __decorate$
|
|
32057
|
+
var __decorate$H = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32013
32058
|
var d,
|
|
32014
32059
|
c = arguments.length,
|
|
32015
32060
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
32016
32061
|
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
32062
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
32018
32063
|
},
|
|
32019
|
-
__metadata$
|
|
32064
|
+
__metadata$z = undefined && undefined.__metadata || function (k, v) {
|
|
32020
32065
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
32021
32066
|
};
|
|
32022
32067
|
var ng = !1;
|
|
32023
32068
|
try {
|
|
32024
32069
|
ng = !!lynx.createCanvasNG;
|
|
32025
32070
|
} catch (err) {}
|
|
32026
|
-
function makeUpCanvas$
|
|
32071
|
+
function makeUpCanvas$3(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, offscreen, pixelRatio) {
|
|
32027
32072
|
var dpr = null != pixelRatio ? pixelRatio : SystemInfo.pixelRatio;
|
|
32028
32073
|
canvasIdLists.forEach(function (id, i) {
|
|
32029
32074
|
var _canvas;
|
|
@@ -32062,7 +32107,7 @@
|
|
|
32062
32107
|
return _createClass(LynxEnvContribution, [{
|
|
32063
32108
|
key: "configure",
|
|
32064
32109
|
value: function configure(service, params) {
|
|
32065
|
-
service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$
|
|
32110
|
+
service.env === this.type && (service.setActiveEnvContribution(this), makeUpCanvas$3(params.domref, params.canvasIdLists, this.canvasMap, params.freeCanvasIdx, this.freeCanvasList, !!params.offscreen, params.pixelRatio));
|
|
32066
32111
|
}
|
|
32067
32112
|
}, {
|
|
32068
32113
|
key: "getDynamicCanvasCount",
|
|
@@ -32166,7 +32211,7 @@
|
|
|
32166
32211
|
value: function release() {}
|
|
32167
32212
|
}]);
|
|
32168
32213
|
}(exports.BaseEnvContribution);
|
|
32169
|
-
LynxEnvContribution = __decorate$
|
|
32214
|
+
LynxEnvContribution = __decorate$H([injectable(), __metadata$z("design:paramtypes", [])], LynxEnvContribution);
|
|
32170
32215
|
|
|
32171
32216
|
var lynxEnvModule = new ContainerModule(function (bind) {
|
|
32172
32217
|
lynxEnvModule.isLynxBound || (lynxEnvModule.isLynxBound = !0, bind(LynxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(LynxEnvContribution));
|
|
@@ -32181,14 +32226,14 @@
|
|
|
32181
32226
|
loadLynxEnv(container);
|
|
32182
32227
|
}
|
|
32183
32228
|
|
|
32184
|
-
var __decorate$
|
|
32229
|
+
var __decorate$G = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32185
32230
|
var d,
|
|
32186
32231
|
c = arguments.length,
|
|
32187
32232
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
32188
32233
|
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
32234
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
32190
32235
|
},
|
|
32191
|
-
__metadata$
|
|
32236
|
+
__metadata$y = undefined && undefined.__metadata || function (k, v) {
|
|
32192
32237
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
32193
32238
|
};
|
|
32194
32239
|
var NodeContext2d = /*#__PURE__*/function (_BrowserContext2d) {
|
|
@@ -32207,16 +32252,16 @@
|
|
|
32207
32252
|
value: function release() {}
|
|
32208
32253
|
}]);
|
|
32209
32254
|
}(BrowserContext2d);
|
|
32210
|
-
NodeContext2d.env = "node", NodeContext2d = __decorate$
|
|
32255
|
+
NodeContext2d.env = "node", NodeContext2d = __decorate$G([injectable(), __metadata$y("design:paramtypes", [Object, Number])], NodeContext2d);
|
|
32211
32256
|
|
|
32212
|
-
var __decorate$
|
|
32257
|
+
var __decorate$F = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32213
32258
|
var d,
|
|
32214
32259
|
c = arguments.length,
|
|
32215
32260
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
32216
32261
|
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
32262
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
32218
32263
|
},
|
|
32219
|
-
__metadata$
|
|
32264
|
+
__metadata$x = undefined && undefined.__metadata || function (k, v) {
|
|
32220
32265
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
32221
32266
|
};
|
|
32222
32267
|
var NodeCanvas = /*#__PURE__*/function (_BaseCanvas) {
|
|
@@ -32237,21 +32282,21 @@
|
|
|
32237
32282
|
}
|
|
32238
32283
|
}]);
|
|
32239
32284
|
}(exports.BaseCanvas);
|
|
32240
|
-
NodeCanvas.env = "node", NodeCanvas = __decorate$
|
|
32285
|
+
NodeCanvas.env = "node", NodeCanvas = __decorate$F([injectable(), __metadata$x("design:paramtypes", [Object])], NodeCanvas);
|
|
32241
32286
|
|
|
32242
32287
|
var nodeCanvasModule = createModule(NodeCanvas, NodeContext2d);
|
|
32243
32288
|
|
|
32244
|
-
var __decorate$
|
|
32289
|
+
var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32245
32290
|
var d,
|
|
32246
32291
|
c = arguments.length,
|
|
32247
32292
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
32248
32293
|
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
32294
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
32250
32295
|
},
|
|
32251
|
-
__metadata$
|
|
32296
|
+
__metadata$w = undefined && undefined.__metadata || function (k, v) {
|
|
32252
32297
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
32253
32298
|
},
|
|
32254
|
-
__param$
|
|
32299
|
+
__param$q = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
32255
32300
|
return function (target, key) {
|
|
32256
32301
|
decorator(target, key, paramIndex);
|
|
32257
32302
|
};
|
|
@@ -32389,14 +32434,14 @@
|
|
|
32389
32434
|
value: function clearViewBox(color) {}
|
|
32390
32435
|
}]);
|
|
32391
32436
|
}(exports.BaseWindowHandlerContribution);
|
|
32392
|
-
NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$
|
|
32437
|
+
NodeWindowHandlerContribution.env = "node", NodeWindowHandlerContribution = __decorate$E([injectable(), __param$q(0, inject(VGlobal)), __metadata$w("design:paramtypes", [Object])], NodeWindowHandlerContribution);
|
|
32393
32438
|
var nodeWindowModule = new ContainerModule(function (bind) {
|
|
32394
32439
|
bind(NodeWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(function (ctx) {
|
|
32395
32440
|
return ctx.container.get(NodeWindowHandlerContribution);
|
|
32396
32441
|
}).whenTargetNamed(NodeWindowHandlerContribution.env);
|
|
32397
32442
|
});
|
|
32398
32443
|
|
|
32399
|
-
var __decorate$
|
|
32444
|
+
var __decorate$D = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32400
32445
|
var d,
|
|
32401
32446
|
c = arguments.length,
|
|
32402
32447
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -32539,7 +32584,7 @@
|
|
|
32539
32584
|
value: function createOffscreenCanvas(params) {}
|
|
32540
32585
|
}]);
|
|
32541
32586
|
}(exports.BaseEnvContribution);
|
|
32542
|
-
NodeEnvContribution = __decorate$
|
|
32587
|
+
NodeEnvContribution = __decorate$D([injectable()], NodeEnvContribution);
|
|
32543
32588
|
|
|
32544
32589
|
var nodeEnvModule = new ContainerModule(function (bind) {
|
|
32545
32590
|
nodeEnvModule.isNodeBound || (nodeEnvModule.isNodeBound = !0, bind(NodeEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(NodeEnvContribution));
|
|
@@ -32553,7 +32598,7 @@
|
|
|
32553
32598
|
loadNodeEnv(container);
|
|
32554
32599
|
}
|
|
32555
32600
|
|
|
32556
|
-
var __decorate$
|
|
32601
|
+
var __decorate$C = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32557
32602
|
var d,
|
|
32558
32603
|
c = arguments.length,
|
|
32559
32604
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
@@ -32674,16 +32719,16 @@
|
|
|
32674
32719
|
}
|
|
32675
32720
|
}]);
|
|
32676
32721
|
}(BrowserContext2d);
|
|
32677
|
-
TaroContext2d.env = "taro", TaroContext2d = __decorate$
|
|
32722
|
+
TaroContext2d.env = "taro", TaroContext2d = __decorate$C([injectable()], TaroContext2d);
|
|
32678
32723
|
|
|
32679
|
-
var __decorate$
|
|
32724
|
+
var __decorate$B = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32680
32725
|
var d,
|
|
32681
32726
|
c = arguments.length,
|
|
32682
32727
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
32683
32728
|
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
32729
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
32685
32730
|
},
|
|
32686
|
-
__metadata$
|
|
32731
|
+
__metadata$v = undefined && undefined.__metadata || function (k, v) {
|
|
32687
32732
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
32688
32733
|
};
|
|
32689
32734
|
var TaroCanvas = /*#__PURE__*/function (_BaseCanvas) {
|
|
@@ -32702,26 +32747,26 @@
|
|
|
32702
32747
|
value: function release() {}
|
|
32703
32748
|
}]);
|
|
32704
32749
|
}(exports.BaseCanvas);
|
|
32705
|
-
TaroCanvas.env = "taro", TaroCanvas = __decorate$
|
|
32750
|
+
TaroCanvas.env = "taro", TaroCanvas = __decorate$B([injectable(), __metadata$v("design:paramtypes", [Object])], TaroCanvas);
|
|
32706
32751
|
|
|
32707
32752
|
var taroCanvasModule = createModule(TaroCanvas, TaroContext2d);
|
|
32708
32753
|
|
|
32709
|
-
var __decorate$
|
|
32754
|
+
var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32710
32755
|
var d,
|
|
32711
32756
|
c = arguments.length,
|
|
32712
32757
|
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
32713
32758
|
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
32759
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
32715
32760
|
},
|
|
32716
|
-
__metadata$
|
|
32761
|
+
__metadata$u = undefined && undefined.__metadata || function (k, v) {
|
|
32717
32762
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
32718
32763
|
},
|
|
32719
|
-
__param$
|
|
32764
|
+
__param$p = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
32720
32765
|
return function (target, key) {
|
|
32721
32766
|
decorator(target, key, paramIndex);
|
|
32722
32767
|
};
|
|
32723
32768
|
};
|
|
32724
|
-
var MiniAppEventManager$
|
|
32769
|
+
var MiniAppEventManager$2 = /*#__PURE__*/function () {
|
|
32725
32770
|
function MiniAppEventManager() {
|
|
32726
32771
|
_classCallCheck(this, MiniAppEventManager);
|
|
32727
32772
|
this.cache = {};
|
|
@@ -32754,7 +32799,7 @@
|
|
|
32754
32799
|
function TaroWindowHandlerContribution(global) {
|
|
32755
32800
|
var _this;
|
|
32756
32801
|
_classCallCheck(this, TaroWindowHandlerContribution);
|
|
32757
|
-
_this = _callSuper(this, TaroWindowHandlerContribution), _this.global = global, _this.type = "taro", _this.eventManager = new MiniAppEventManager$
|
|
32802
|
+
_this = _callSuper(this, TaroWindowHandlerContribution), _this.global = global, _this.type = "taro", _this.eventManager = new MiniAppEventManager$2();
|
|
32758
32803
|
return _this;
|
|
32759
32804
|
}
|
|
32760
32805
|
_inherits(TaroWindowHandlerContribution, _BaseWindowHandlerCon);
|
|
@@ -32868,17 +32913,441 @@
|
|
|
32868
32913
|
key: "dispatchEvent",
|
|
32869
32914
|
value: function dispatchEvent(event) {
|
|
32870
32915
|
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) {
|
|
32916
|
+
return !!this.eventManager.cache[type] && (event.changedTouches.length > 0 && (event.changedTouches.forEach(function (d, i) {
|
|
32917
|
+
event.changedTouches[i] = Object.assign(Object.assign({}, event.changedTouches[i]), {
|
|
32918
|
+
offsetX: d.x,
|
|
32919
|
+
offsetY: d.y
|
|
32920
|
+
});
|
|
32921
|
+
}), event.offsetX = event.changedTouches[0].offsetX, event.offsetY = event.changedTouches[0].offsetY), event.touches.length > 0 && event.touches.forEach(function (d, i) {
|
|
32922
|
+
event.touches[i] = Object.assign(Object.assign({}, event.touches[i]), {
|
|
32923
|
+
offsetX: d.x,
|
|
32924
|
+
offsetY: d.y
|
|
32925
|
+
});
|
|
32926
|
+
}), event.preventDefault = function () {}, event.stopPropagation = function () {}, this.eventManager.cache[type].listener && this.eventManager.cache[type].listener.forEach(function (f) {
|
|
32927
|
+
f(event);
|
|
32928
|
+
}), !0);
|
|
32929
|
+
}
|
|
32930
|
+
}, {
|
|
32931
|
+
key: "getStyle",
|
|
32932
|
+
value: function getStyle() {
|
|
32933
|
+
return {};
|
|
32934
|
+
}
|
|
32935
|
+
}, {
|
|
32936
|
+
key: "setStyle",
|
|
32937
|
+
value: function setStyle(style) {}
|
|
32938
|
+
}, {
|
|
32939
|
+
key: "getBoundingClientRect",
|
|
32940
|
+
value: function getBoundingClientRect() {
|
|
32941
|
+
var wh = this.getWH();
|
|
32942
|
+
return {
|
|
32943
|
+
x: 0,
|
|
32944
|
+
y: 0,
|
|
32945
|
+
width: wh.width,
|
|
32946
|
+
height: wh.height,
|
|
32947
|
+
left: 0,
|
|
32948
|
+
top: 0,
|
|
32949
|
+
right: 0,
|
|
32950
|
+
bottom: 0
|
|
32951
|
+
};
|
|
32952
|
+
}
|
|
32953
|
+
}, {
|
|
32954
|
+
key: "clearViewBox",
|
|
32955
|
+
value: function clearViewBox(color) {
|
|
32956
|
+
var vb = this.viewBox,
|
|
32957
|
+
context = this.getContext(),
|
|
32958
|
+
dpr = this.getDpr();
|
|
32959
|
+
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();
|
|
32960
|
+
}
|
|
32961
|
+
}]);
|
|
32962
|
+
}(exports.BaseWindowHandlerContribution);
|
|
32963
|
+
TaroWindowHandlerContribution.env = "taro", TaroWindowHandlerContribution = __decorate$A([injectable(), __param$p(0, inject(VGlobal)), __metadata$u("design:paramtypes", [Object])], TaroWindowHandlerContribution);
|
|
32964
|
+
var taroWindowModule = new ContainerModule(function (bind) {
|
|
32965
|
+
bind(TaroWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(function (ctx) {
|
|
32966
|
+
return ctx.container.get(TaroWindowHandlerContribution);
|
|
32967
|
+
}).whenTargetNamed(TaroWindowHandlerContribution.env);
|
|
32968
|
+
});
|
|
32969
|
+
|
|
32970
|
+
var __decorate$z = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
32971
|
+
var d,
|
|
32972
|
+
c = arguments.length,
|
|
32973
|
+
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
32974
|
+
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);
|
|
32975
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
32976
|
+
},
|
|
32977
|
+
__metadata$t = undefined && undefined.__metadata || function (k, v) {
|
|
32978
|
+
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
32979
|
+
};
|
|
32980
|
+
function makeUpCanvas$2(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, taro, dpr) {
|
|
32981
|
+
canvasIdLists.forEach(function (id, i) {
|
|
32982
|
+
var ctx = taro.createCanvasContext(id),
|
|
32983
|
+
canvas = new CanvasWrapDisableWH(ctx.canvas || {}, ctx, dpr, domref.width, domref.height, id);
|
|
32984
|
+
return ctx.canvas = canvas, canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas), canvas;
|
|
32985
|
+
});
|
|
32986
|
+
}
|
|
32987
|
+
var TaroEnvContribution = /*#__PURE__*/function (_BaseEnvContribution) {
|
|
32988
|
+
function TaroEnvContribution() {
|
|
32989
|
+
var _this;
|
|
32990
|
+
_classCallCheck(this, TaroEnvContribution);
|
|
32991
|
+
_this = _callSuper(this, TaroEnvContribution), _this.type = "taro", _this.supportEvent = !0, _this.canvasMap = new Map(), _this.freeCanvasList = [], _this.canvasIdx = 0, _this.supportsTouchEvents = !0;
|
|
32992
|
+
try {
|
|
32993
|
+
_this.supportsPointerEvents = !!globalThis.PointerEvent, _this.supportsMouseEvents = !!globalThis.MouseEvent;
|
|
32994
|
+
} catch (err) {
|
|
32995
|
+
_this.supportsPointerEvents = !1, _this.supportsMouseEvents = !1;
|
|
32996
|
+
}
|
|
32997
|
+
_this.applyStyles = !0;
|
|
32998
|
+
return _this;
|
|
32999
|
+
}
|
|
33000
|
+
_inherits(TaroEnvContribution, _BaseEnvContribution);
|
|
33001
|
+
return _createClass(TaroEnvContribution, [{
|
|
33002
|
+
key: "getDynamicCanvasCount",
|
|
33003
|
+
value: function getDynamicCanvasCount() {
|
|
33004
|
+
return this.freeCanvasList.length;
|
|
33005
|
+
}
|
|
33006
|
+
}, {
|
|
33007
|
+
key: "getStaticCanvasCount",
|
|
33008
|
+
value: function getStaticCanvasCount() {
|
|
33009
|
+
return 9999;
|
|
33010
|
+
}
|
|
33011
|
+
}, {
|
|
33012
|
+
key: "mapToCanvasPoint",
|
|
33013
|
+
value: function mapToCanvasPoint(event) {
|
|
33014
|
+
var _a;
|
|
33015
|
+
return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
|
|
33016
|
+
}
|
|
33017
|
+
}, {
|
|
33018
|
+
key: "configure",
|
|
33019
|
+
value: function configure(service, params) {
|
|
33020
|
+
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);
|
|
33021
|
+
}
|
|
33022
|
+
}, {
|
|
33023
|
+
key: "loadImage",
|
|
33024
|
+
value: function loadImage(url) {
|
|
33025
|
+
return Promise.resolve({
|
|
33026
|
+
data: url,
|
|
33027
|
+
loadState: "success"
|
|
33028
|
+
});
|
|
33029
|
+
}
|
|
33030
|
+
}, {
|
|
33031
|
+
key: "loadSvg",
|
|
33032
|
+
value: function loadSvg(svgStr) {
|
|
33033
|
+
var _window = window || globalThis;
|
|
33034
|
+
if (_window.DOMParser) {
|
|
33035
|
+
var svg = new _window.DOMParser().parseFromString(svgStr, "image/svg+xml").children[0],
|
|
33036
|
+
data = new XMLSerializer().serializeToString(svg),
|
|
33037
|
+
url = "data:image/svg+xml;charset=utf-8,".concat(encodeURIComponent(data));
|
|
33038
|
+
return Promise.resolve({
|
|
33039
|
+
data: url,
|
|
33040
|
+
loadState: "success"
|
|
33041
|
+
});
|
|
33042
|
+
}
|
|
33043
|
+
if (_window.Blob) {
|
|
33044
|
+
var _data = new _window.Blob([svgStr], {
|
|
33045
|
+
type: "image/svg+xml"
|
|
33046
|
+
}),
|
|
33047
|
+
_url = _window.URL.createObjectURL(_data);
|
|
33048
|
+
return Promise.resolve({
|
|
33049
|
+
data: _url,
|
|
33050
|
+
loadState: "success"
|
|
33051
|
+
});
|
|
33052
|
+
}
|
|
33053
|
+
return Promise.reject();
|
|
33054
|
+
}
|
|
33055
|
+
}, {
|
|
33056
|
+
key: "createCanvas",
|
|
33057
|
+
value: function createCanvas(params) {
|
|
33058
|
+
var result = this.freeCanvasList[this.canvasIdx] || this.freeCanvasList[this.freeCanvasList.length - 1];
|
|
33059
|
+
return this.canvasIdx++, result;
|
|
33060
|
+
}
|
|
33061
|
+
}, {
|
|
33062
|
+
key: "createOffscreenCanvas",
|
|
33063
|
+
value: function createOffscreenCanvas(params) {}
|
|
33064
|
+
}, {
|
|
33065
|
+
key: "releaseCanvas",
|
|
33066
|
+
value: function releaseCanvas(canvas) {}
|
|
33067
|
+
}, {
|
|
33068
|
+
key: "getDevicePixelRatio",
|
|
33069
|
+
value: function getDevicePixelRatio() {
|
|
33070
|
+
return this.pixelRatio;
|
|
33071
|
+
}
|
|
33072
|
+
}, {
|
|
33073
|
+
key: "getRequestAnimationFrame",
|
|
33074
|
+
value: function getRequestAnimationFrame() {
|
|
33075
|
+
return requestAnimationFrame;
|
|
33076
|
+
}
|
|
33077
|
+
}, {
|
|
33078
|
+
key: "getCancelAnimationFrame",
|
|
33079
|
+
value: function getCancelAnimationFrame() {
|
|
33080
|
+
return cancelAnimationFrame;
|
|
33081
|
+
}
|
|
33082
|
+
}, {
|
|
33083
|
+
key: "addEventListener",
|
|
33084
|
+
value: function addEventListener(type, listener, options) {
|
|
33085
|
+
return null;
|
|
33086
|
+
}
|
|
33087
|
+
}, {
|
|
33088
|
+
key: "removeEventListener",
|
|
33089
|
+
value: function removeEventListener(type, listener, options) {
|
|
33090
|
+
return null;
|
|
33091
|
+
}
|
|
33092
|
+
}, {
|
|
33093
|
+
key: "dispatchEvent",
|
|
33094
|
+
value: function dispatchEvent(event) {
|
|
33095
|
+
return null;
|
|
33096
|
+
}
|
|
33097
|
+
}, {
|
|
33098
|
+
key: "getElementById",
|
|
33099
|
+
value: function getElementById(str) {
|
|
33100
|
+
return this.canvasMap.get(str);
|
|
33101
|
+
}
|
|
33102
|
+
}, {
|
|
33103
|
+
key: "getRootElement",
|
|
33104
|
+
value: function getRootElement() {
|
|
33105
|
+
return null;
|
|
33106
|
+
}
|
|
33107
|
+
}, {
|
|
33108
|
+
key: "getDocument",
|
|
33109
|
+
value: function getDocument() {
|
|
33110
|
+
return null;
|
|
33111
|
+
}
|
|
33112
|
+
}, {
|
|
33113
|
+
key: "release",
|
|
33114
|
+
value: function release() {}
|
|
33115
|
+
}]);
|
|
33116
|
+
}(exports.BaseEnvContribution);
|
|
33117
|
+
TaroEnvContribution = __decorate$z([injectable(), __metadata$t("design:paramtypes", [])], TaroEnvContribution);
|
|
33118
|
+
|
|
33119
|
+
var taroEnvModule = new ContainerModule(function (bind) {
|
|
33120
|
+
taroEnvModule.isTaroBound || (taroEnvModule.isTaroBound = !0, bind(TaroEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TaroEnvContribution));
|
|
33121
|
+
});
|
|
33122
|
+
taroEnvModule.isTaroBound = !1;
|
|
33123
|
+
function loadTaroEnv(container) {
|
|
33124
|
+
var loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
|
|
33125
|
+
loadTaroEnv.__loaded || (loadTaroEnv.__loaded = !0, container.load(taroEnvModule), container.load(taroCanvasModule), container.load(taroWindowModule), loadPicker && loadMathPicker(container));
|
|
33126
|
+
}
|
|
33127
|
+
loadTaroEnv.__loaded = !1;
|
|
33128
|
+
function initTaroEnv() {
|
|
33129
|
+
loadTaroEnv(container);
|
|
33130
|
+
}
|
|
33131
|
+
|
|
33132
|
+
var __decorate$y = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33133
|
+
var d,
|
|
33134
|
+
c = arguments.length,
|
|
33135
|
+
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
33136
|
+
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);
|
|
33137
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
33138
|
+
};
|
|
33139
|
+
var WxContext2d = /*#__PURE__*/function (_BrowserContext2d) {
|
|
33140
|
+
function WxContext2d() {
|
|
33141
|
+
_classCallCheck(this, WxContext2d);
|
|
33142
|
+
return _callSuper(this, WxContext2d, arguments);
|
|
33143
|
+
}
|
|
33144
|
+
_inherits(WxContext2d, _BrowserContext2d);
|
|
33145
|
+
return _createClass(WxContext2d, [{
|
|
33146
|
+
key: "draw",
|
|
33147
|
+
value: function draw() {}
|
|
33148
|
+
}, {
|
|
33149
|
+
key: "createPattern",
|
|
33150
|
+
value: function createPattern(image, repetition) {
|
|
33151
|
+
return null;
|
|
33152
|
+
}
|
|
33153
|
+
}]);
|
|
33154
|
+
}(BrowserContext2d);
|
|
33155
|
+
WxContext2d.env = "wx", WxContext2d = __decorate$y([injectable()], WxContext2d);
|
|
33156
|
+
|
|
33157
|
+
var __decorate$x = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33158
|
+
var d,
|
|
33159
|
+
c = arguments.length,
|
|
33160
|
+
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
33161
|
+
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);
|
|
33162
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
33163
|
+
},
|
|
33164
|
+
__metadata$s = undefined && undefined.__metadata || function (k, v) {
|
|
33165
|
+
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
33166
|
+
};
|
|
33167
|
+
var WxCanvas = /*#__PURE__*/function (_BaseCanvas) {
|
|
33168
|
+
function WxCanvas(params) {
|
|
33169
|
+
_classCallCheck(this, WxCanvas);
|
|
33170
|
+
return _callSuper(this, WxCanvas, [params]);
|
|
33171
|
+
}
|
|
33172
|
+
_inherits(WxCanvas, _BaseCanvas);
|
|
33173
|
+
return _createClass(WxCanvas, [{
|
|
33174
|
+
key: "init",
|
|
33175
|
+
value: function init() {
|
|
33176
|
+
this._context = new WxContext2d(this, this._dpr);
|
|
33177
|
+
}
|
|
33178
|
+
}, {
|
|
33179
|
+
key: "release",
|
|
33180
|
+
value: function release() {}
|
|
33181
|
+
}]);
|
|
33182
|
+
}(exports.BaseCanvas);
|
|
33183
|
+
WxCanvas.env = "wx", WxCanvas = __decorate$x([injectable(), __metadata$s("design:paramtypes", [Object])], WxCanvas);
|
|
33184
|
+
|
|
33185
|
+
var wxCanvasModule = createModule(WxCanvas, WxContext2d);
|
|
33186
|
+
|
|
33187
|
+
var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33188
|
+
var d,
|
|
33189
|
+
c = arguments.length,
|
|
33190
|
+
r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc;
|
|
33191
|
+
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);
|
|
33192
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
33193
|
+
},
|
|
33194
|
+
__metadata$r = undefined && undefined.__metadata || function (k, v) {
|
|
33195
|
+
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
33196
|
+
},
|
|
33197
|
+
__param$o = undefined && undefined.__param || function (paramIndex, decorator) {
|
|
33198
|
+
return function (target, key) {
|
|
33199
|
+
decorator(target, key, paramIndex);
|
|
33200
|
+
};
|
|
33201
|
+
};
|
|
33202
|
+
var MiniAppEventManager$1 = /*#__PURE__*/function () {
|
|
33203
|
+
function MiniAppEventManager() {
|
|
33204
|
+
_classCallCheck(this, MiniAppEventManager);
|
|
33205
|
+
this.cache = {};
|
|
33206
|
+
}
|
|
33207
|
+
return _createClass(MiniAppEventManager, [{
|
|
33208
|
+
key: "addEventListener",
|
|
33209
|
+
value: function addEventListener(type, func) {
|
|
33210
|
+
type && func && (this.cache[type] = this.cache[type] || {
|
|
33211
|
+
listener: []
|
|
33212
|
+
}, this.cache[type].listener.push(func));
|
|
33213
|
+
}
|
|
33214
|
+
}, {
|
|
33215
|
+
key: "removeEventListener",
|
|
33216
|
+
value: function removeEventListener(type, func) {
|
|
33217
|
+
if (!type || !func) return;
|
|
33218
|
+
if (!this.cache[type]) return;
|
|
33219
|
+
var index = this.cache[type].listener.findIndex(function (f) {
|
|
33220
|
+
return f === func;
|
|
33221
|
+
});
|
|
33222
|
+
index >= 0 && this.cache[type].listener.splice(index, 1);
|
|
33223
|
+
}
|
|
33224
|
+
}, {
|
|
33225
|
+
key: "cleanEvent",
|
|
33226
|
+
value: function cleanEvent() {
|
|
33227
|
+
this.cache = {};
|
|
33228
|
+
}
|
|
33229
|
+
}]);
|
|
33230
|
+
}();
|
|
33231
|
+
var WxWindowHandlerContribution = /*#__PURE__*/function (_BaseWindowHandlerCon) {
|
|
33232
|
+
function WxWindowHandlerContribution(global) {
|
|
33233
|
+
var _this;
|
|
33234
|
+
_classCallCheck(this, WxWindowHandlerContribution);
|
|
33235
|
+
_this = _callSuper(this, WxWindowHandlerContribution), _this.global = global, _this.type = "wx", _this.eventManager = new MiniAppEventManager$1();
|
|
33236
|
+
return _this;
|
|
33237
|
+
}
|
|
33238
|
+
_inherits(WxWindowHandlerContribution, _BaseWindowHandlerCon);
|
|
33239
|
+
return _createClass(WxWindowHandlerContribution, [{
|
|
33240
|
+
key: "container",
|
|
33241
|
+
get: function get() {
|
|
33242
|
+
return null;
|
|
33243
|
+
}
|
|
33244
|
+
}, {
|
|
33245
|
+
key: "getTitle",
|
|
33246
|
+
value: function getTitle() {
|
|
33247
|
+
return this.canvas.id.toString();
|
|
33248
|
+
}
|
|
33249
|
+
}, {
|
|
33250
|
+
key: "getWH",
|
|
33251
|
+
value: function getWH() {
|
|
33252
|
+
return {
|
|
33253
|
+
width: this.canvas.width / (this.canvas.dpr || 1),
|
|
33254
|
+
height: this.canvas.height / (this.canvas.dpr || 1)
|
|
33255
|
+
};
|
|
33256
|
+
}
|
|
33257
|
+
}, {
|
|
33258
|
+
key: "getXY",
|
|
33259
|
+
value: function getXY() {
|
|
33260
|
+
return {
|
|
33261
|
+
x: 0,
|
|
33262
|
+
y: 0
|
|
33263
|
+
};
|
|
33264
|
+
}
|
|
33265
|
+
}, {
|
|
33266
|
+
key: "createWindow",
|
|
33267
|
+
value: function createWindow(params) {
|
|
33268
|
+
params.canvas ? this.createWindowByCanvas(params) : this.createWindowByConfig(params);
|
|
33269
|
+
}
|
|
33270
|
+
}, {
|
|
33271
|
+
key: "createWindowByConfig",
|
|
33272
|
+
value: function createWindowByConfig(params) {
|
|
33273
|
+
var nativeCanvas = this.global.createCanvas({
|
|
33274
|
+
width: params.width,
|
|
33275
|
+
height: params.height
|
|
33276
|
+
}),
|
|
33277
|
+
options = {
|
|
33278
|
+
width: params.width,
|
|
33279
|
+
height: params.height,
|
|
33280
|
+
dpr: params.dpr,
|
|
33281
|
+
nativeCanvas: nativeCanvas,
|
|
33282
|
+
id: Generator.GenAutoIncrementId().toString(),
|
|
33283
|
+
canvasControled: !1
|
|
33284
|
+
};
|
|
33285
|
+
this.canvas = new WxCanvas(options);
|
|
33286
|
+
}
|
|
33287
|
+
}, {
|
|
33288
|
+
key: "createWindowByCanvas",
|
|
33289
|
+
value: function createWindowByCanvas(params) {
|
|
33290
|
+
var canvas;
|
|
33291
|
+
if ("string" == typeof params.canvas) {
|
|
33292
|
+
if (canvas = this.global.getElementById(params.canvas), !canvas) throw new Error("canvasId 参数不正确,请确认canvas存在并插入dom");
|
|
33293
|
+
} else canvas = params.canvas;
|
|
33294
|
+
var width = params.width,
|
|
33295
|
+
height = params.height;
|
|
33296
|
+
if (null == width || null == height || !params.canvasControled) {
|
|
33297
|
+
var data = canvas.getBoundingClientRect();
|
|
33298
|
+
width = data.width, height = data.height;
|
|
33299
|
+
}
|
|
33300
|
+
var dpr = params.dpr;
|
|
33301
|
+
null == dpr && (dpr = canvas.width / width), this.canvas = new WxCanvas({
|
|
33302
|
+
width: width,
|
|
33303
|
+
height: height,
|
|
33304
|
+
dpr: dpr,
|
|
33305
|
+
nativeCanvas: canvas,
|
|
33306
|
+
canvasControled: params.canvasControled
|
|
33307
|
+
});
|
|
33308
|
+
}
|
|
33309
|
+
}, {
|
|
33310
|
+
key: "releaseWindow",
|
|
33311
|
+
value: function releaseWindow() {}
|
|
33312
|
+
}, {
|
|
33313
|
+
key: "resizeWindow",
|
|
33314
|
+
value: function resizeWindow(width, height) {}
|
|
33315
|
+
}, {
|
|
33316
|
+
key: "setDpr",
|
|
33317
|
+
value: function setDpr(dpr) {
|
|
33318
|
+
this.canvas.dpr = dpr;
|
|
33319
|
+
}
|
|
33320
|
+
}, {
|
|
33321
|
+
key: "getContext",
|
|
33322
|
+
value: function getContext() {
|
|
33323
|
+
return this.canvas.getContext();
|
|
33324
|
+
}
|
|
33325
|
+
}, {
|
|
33326
|
+
key: "getNativeHandler",
|
|
33327
|
+
value: function getNativeHandler() {
|
|
33328
|
+
return this.canvas;
|
|
33329
|
+
}
|
|
33330
|
+
}, {
|
|
33331
|
+
key: "getDpr",
|
|
33332
|
+
value: function getDpr() {
|
|
33333
|
+
return this.canvas.dpr;
|
|
33334
|
+
}
|
|
33335
|
+
}, {
|
|
33336
|
+
key: "addEventListener",
|
|
33337
|
+
value: function addEventListener(type, listener) {
|
|
33338
|
+
this.eventManager.addEventListener(type, listener);
|
|
33339
|
+
}
|
|
33340
|
+
}, {
|
|
33341
|
+
key: "removeEventListener",
|
|
33342
|
+
value: function removeEventListener(type, listener) {
|
|
33343
|
+
this.eventManager.removeEventListener(type, listener);
|
|
33344
|
+
}
|
|
33345
|
+
}, {
|
|
33346
|
+
key: "dispatchEvent",
|
|
33347
|
+
value: function dispatchEvent(event) {
|
|
33348
|
+
var _a, _b, _c, _d;
|
|
33349
|
+
var type = event.type;
|
|
33350
|
+
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
33351
|
f(event);
|
|
32883
33352
|
}), !0);
|
|
32884
33353
|
}
|
|
@@ -32915,11 +33384,11 @@
|
|
|
32915
33384
|
}
|
|
32916
33385
|
}]);
|
|
32917
33386
|
}(exports.BaseWindowHandlerContribution);
|
|
32918
|
-
|
|
32919
|
-
var
|
|
32920
|
-
bind(
|
|
32921
|
-
return ctx.container.get(
|
|
32922
|
-
}).whenTargetNamed(
|
|
33387
|
+
WxWindowHandlerContribution.env = "wx", WxWindowHandlerContribution = __decorate$w([injectable(), __param$o(0, inject(VGlobal)), __metadata$r("design:paramtypes", [Object])], WxWindowHandlerContribution);
|
|
33388
|
+
var wxWindowModule = new ContainerModule(function (bind) {
|
|
33389
|
+
bind(WxWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(function (ctx) {
|
|
33390
|
+
return ctx.container.get(WxWindowHandlerContribution);
|
|
33391
|
+
}).whenTargetNamed(WxWindowHandlerContribution.env);
|
|
32923
33392
|
});
|
|
32924
33393
|
|
|
32925
33394
|
var __decorate$v = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
@@ -32931,19 +33400,88 @@
|
|
|
32931
33400
|
},
|
|
32932
33401
|
__metadata$q = undefined && undefined.__metadata || function (k, v) {
|
|
32933
33402
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
33403
|
+
},
|
|
33404
|
+
__awaiter$1 = undefined && undefined.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
33405
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33406
|
+
function fulfilled(value) {
|
|
33407
|
+
try {
|
|
33408
|
+
step(generator.next(value));
|
|
33409
|
+
} catch (e) {
|
|
33410
|
+
reject(e);
|
|
33411
|
+
}
|
|
33412
|
+
}
|
|
33413
|
+
function rejected(value) {
|
|
33414
|
+
try {
|
|
33415
|
+
step(generator["throw"](value));
|
|
33416
|
+
} catch (e) {
|
|
33417
|
+
reject(e);
|
|
33418
|
+
}
|
|
33419
|
+
}
|
|
33420
|
+
function step(result) {
|
|
33421
|
+
var value;
|
|
33422
|
+
result.done ? resolve(result.value) : (value = result.value, value instanceof P ? value : new P(function (resolve) {
|
|
33423
|
+
resolve(value);
|
|
33424
|
+
})).then(fulfilled, rejected);
|
|
33425
|
+
}
|
|
33426
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
33427
|
+
});
|
|
32934
33428
|
};
|
|
32935
|
-
function makeUpCanvas$1(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList,
|
|
32936
|
-
|
|
32937
|
-
var
|
|
32938
|
-
|
|
32939
|
-
|
|
32940
|
-
|
|
33429
|
+
function makeUpCanvas$1(domref, canvasIdLists, canvasMap, freeCanvasIdx, freeCanvasList, component) {
|
|
33430
|
+
return __awaiter$1(this, void 0, void 0, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
33431
|
+
var dpr, _loop, i;
|
|
33432
|
+
return _regeneratorRuntime().wrap(function _callee$(_context2) {
|
|
33433
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
33434
|
+
case 0:
|
|
33435
|
+
dpr = wx.getSystemInfoSync().pixelRatio;
|
|
33436
|
+
_loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop(i) {
|
|
33437
|
+
var id;
|
|
33438
|
+
return _regeneratorRuntime().wrap(function _loop$(_context) {
|
|
33439
|
+
while (1) switch (_context.prev = _context.next) {
|
|
33440
|
+
case 0:
|
|
33441
|
+
id = canvasIdLists[i];
|
|
33442
|
+
_context.next = 3;
|
|
33443
|
+
return new Promise(function (resolve) {
|
|
33444
|
+
var data = wx.createSelectorQuery();
|
|
33445
|
+
component && (data = data["in"](component)), data.select("#".concat(id)).fields({
|
|
33446
|
+
node: !0,
|
|
33447
|
+
size: !0
|
|
33448
|
+
}).exec(function (res) {
|
|
33449
|
+
if (!res[0]) return;
|
|
33450
|
+
var canvas = res[0].node,
|
|
33451
|
+
width = res[0].width,
|
|
33452
|
+
height = res[0].height;
|
|
33453
|
+
canvas.width = width * dpr, canvas.height = height * dpr, canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas), resolve(null);
|
|
33454
|
+
});
|
|
33455
|
+
});
|
|
33456
|
+
case 3:
|
|
33457
|
+
case "end":
|
|
33458
|
+
return _context.stop();
|
|
33459
|
+
}
|
|
33460
|
+
}, _loop);
|
|
33461
|
+
});
|
|
33462
|
+
i = 0;
|
|
33463
|
+
case 3:
|
|
33464
|
+
if (!(i < canvasIdLists.length)) {
|
|
33465
|
+
_context2.next = 8;
|
|
33466
|
+
break;
|
|
33467
|
+
}
|
|
33468
|
+
return _context2.delegateYield(_loop(i), "t0", 5);
|
|
33469
|
+
case 5:
|
|
33470
|
+
i++;
|
|
33471
|
+
_context2.next = 3;
|
|
33472
|
+
break;
|
|
33473
|
+
case 8:
|
|
33474
|
+
case "end":
|
|
33475
|
+
return _context2.stop();
|
|
33476
|
+
}
|
|
33477
|
+
}, _callee);
|
|
33478
|
+
}));
|
|
32941
33479
|
}
|
|
32942
|
-
var
|
|
32943
|
-
function
|
|
33480
|
+
var WxEnvContribution = /*#__PURE__*/function (_BaseEnvContribution) {
|
|
33481
|
+
function WxEnvContribution() {
|
|
32944
33482
|
var _this;
|
|
32945
|
-
_classCallCheck(this,
|
|
32946
|
-
_this = _callSuper(this,
|
|
33483
|
+
_classCallCheck(this, WxEnvContribution);
|
|
33484
|
+
_this = _callSuper(this, WxEnvContribution), _this.type = "wx", _this.supportEvent = !0, _this.canvasMap = new Map(), _this.freeCanvasList = [], _this.canvasIdx = 0, _this.supportsTouchEvents = !0;
|
|
32947
33485
|
try {
|
|
32948
33486
|
_this.supportsPointerEvents = !!globalThis.PointerEvent, _this.supportsMouseEvents = !!globalThis.MouseEvent;
|
|
32949
33487
|
} catch (err) {
|
|
@@ -32952,27 +33490,11 @@
|
|
|
32952
33490
|
_this.applyStyles = !0;
|
|
32953
33491
|
return _this;
|
|
32954
33492
|
}
|
|
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
|
-
}, {
|
|
33493
|
+
_inherits(WxEnvContribution, _BaseEnvContribution);
|
|
33494
|
+
return _createClass(WxEnvContribution, [{
|
|
32973
33495
|
key: "configure",
|
|
32974
33496
|
value: function configure(service, params) {
|
|
32975
|
-
service.env === this.type
|
|
33497
|
+
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
33498
|
}
|
|
32977
33499
|
}, {
|
|
32978
33500
|
key: "loadImage",
|
|
@@ -32984,27 +33506,7 @@
|
|
|
32984
33506
|
}
|
|
32985
33507
|
}, {
|
|
32986
33508
|
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
|
-
}
|
|
33509
|
+
value: function loadSvg(url) {
|
|
33008
33510
|
return Promise.reject();
|
|
33009
33511
|
}
|
|
33010
33512
|
}, {
|
|
@@ -33022,17 +33524,21 @@
|
|
|
33022
33524
|
}, {
|
|
33023
33525
|
key: "getDevicePixelRatio",
|
|
33024
33526
|
value: function getDevicePixelRatio() {
|
|
33025
|
-
return
|
|
33527
|
+
return wx.getSystemInfoSync().pixelRatio;
|
|
33026
33528
|
}
|
|
33027
33529
|
}, {
|
|
33028
33530
|
key: "getRequestAnimationFrame",
|
|
33029
33531
|
value: function getRequestAnimationFrame() {
|
|
33030
|
-
return
|
|
33532
|
+
return function (callback) {
|
|
33533
|
+
return rafBasedSto.call(callback);
|
|
33534
|
+
};
|
|
33031
33535
|
}
|
|
33032
33536
|
}, {
|
|
33033
33537
|
key: "getCancelAnimationFrame",
|
|
33034
33538
|
value: function getCancelAnimationFrame() {
|
|
33035
|
-
return
|
|
33539
|
+
return function (h) {
|
|
33540
|
+
rafBasedSto.clear(h);
|
|
33541
|
+
};
|
|
33036
33542
|
}
|
|
33037
33543
|
}, {
|
|
33038
33544
|
key: "addEventListener",
|
|
@@ -33067,21 +33573,40 @@
|
|
|
33067
33573
|
}, {
|
|
33068
33574
|
key: "release",
|
|
33069
33575
|
value: function release() {}
|
|
33576
|
+
}, {
|
|
33577
|
+
key: "mapToCanvasPoint",
|
|
33578
|
+
value: function mapToCanvasPoint(event) {
|
|
33579
|
+
var _a;
|
|
33580
|
+
return null === (_a = null == event ? void 0 : event.type) || void 0 === _a || _a.startsWith("mouse"), event;
|
|
33581
|
+
}
|
|
33070
33582
|
}]);
|
|
33071
33583
|
}(exports.BaseEnvContribution);
|
|
33072
|
-
|
|
33584
|
+
WxEnvContribution = __decorate$v([injectable(), __metadata$q("design:paramtypes", [])], WxEnvContribution);
|
|
33073
33585
|
|
|
33074
|
-
var
|
|
33075
|
-
|
|
33586
|
+
var wxEnvModule = new ContainerModule(function (bind) {
|
|
33587
|
+
wxEnvModule._isWxBound || (wxEnvModule._isWxBound = !0, bind(WxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(WxEnvContribution));
|
|
33076
33588
|
});
|
|
33077
|
-
|
|
33078
|
-
function
|
|
33589
|
+
wxEnvModule._isWxBound = !1;
|
|
33590
|
+
function loadWxEnv(container) {
|
|
33079
33591
|
var loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
|
|
33080
|
-
|
|
33592
|
+
loadWxEnv.__loaded || (loadWxEnv.__loaded = !0, container.load(wxEnvModule), container.load(wxCanvasModule), container.load(wxWindowModule), loadPicker && loadMathPicker(container));
|
|
33081
33593
|
}
|
|
33082
|
-
|
|
33083
|
-
function
|
|
33084
|
-
|
|
33594
|
+
loadWxEnv.__loaded = !1;
|
|
33595
|
+
function initWxEnv() {
|
|
33596
|
+
loadWxEnv(container);
|
|
33597
|
+
}
|
|
33598
|
+
|
|
33599
|
+
function loadAllEnv(container) {
|
|
33600
|
+
loadAllModule(container);
|
|
33601
|
+
}
|
|
33602
|
+
function loadAllModule(container) {
|
|
33603
|
+
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) {
|
|
33604
|
+
"browser" !== env && loadMathPicker(container);
|
|
33605
|
+
}));
|
|
33606
|
+
}
|
|
33607
|
+
loadAllModule.__loaded = !1;
|
|
33608
|
+
function initAllEnv() {
|
|
33609
|
+
loadAllEnv(container);
|
|
33085
33610
|
}
|
|
33086
33611
|
|
|
33087
33612
|
var __decorate$u = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
@@ -33091,23 +33616,15 @@
|
|
|
33091
33616
|
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
33617
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
33093
33618
|
};
|
|
33094
|
-
var
|
|
33095
|
-
function
|
|
33096
|
-
_classCallCheck(this,
|
|
33097
|
-
return _callSuper(this,
|
|
33619
|
+
var TTContext2d = /*#__PURE__*/function (_FeishuContext2d) {
|
|
33620
|
+
function TTContext2d() {
|
|
33621
|
+
_classCallCheck(this, TTContext2d);
|
|
33622
|
+
return _callSuper(this, TTContext2d, arguments);
|
|
33098
33623
|
}
|
|
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);
|
|
33624
|
+
_inherits(TTContext2d, _FeishuContext2d);
|
|
33625
|
+
return _createClass(TTContext2d);
|
|
33626
|
+
}(FeishuContext2d);
|
|
33627
|
+
TTContext2d.env = "tt", TTContext2d = __decorate$u([injectable()], TTContext2d);
|
|
33111
33628
|
|
|
33112
33629
|
var __decorate$t = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33113
33630
|
var d,
|
|
@@ -33119,25 +33636,25 @@
|
|
|
33119
33636
|
__metadata$p = undefined && undefined.__metadata || function (k, v) {
|
|
33120
33637
|
if ("object" == (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) && "function" == typeof Reflect.metadata) return Reflect.metadata(k, v);
|
|
33121
33638
|
};
|
|
33122
|
-
var
|
|
33123
|
-
function
|
|
33124
|
-
_classCallCheck(this,
|
|
33125
|
-
return _callSuper(this,
|
|
33639
|
+
var TTCanvas = /*#__PURE__*/function (_BaseCanvas) {
|
|
33640
|
+
function TTCanvas(params) {
|
|
33641
|
+
_classCallCheck(this, TTCanvas);
|
|
33642
|
+
return _callSuper(this, TTCanvas, [params]);
|
|
33126
33643
|
}
|
|
33127
|
-
_inherits(
|
|
33128
|
-
return _createClass(
|
|
33644
|
+
_inherits(TTCanvas, _BaseCanvas);
|
|
33645
|
+
return _createClass(TTCanvas, [{
|
|
33129
33646
|
key: "init",
|
|
33130
33647
|
value: function init() {
|
|
33131
|
-
this._context = new
|
|
33648
|
+
this._context = new TTContext2d(this, this._dpr);
|
|
33132
33649
|
}
|
|
33133
33650
|
}, {
|
|
33134
33651
|
key: "release",
|
|
33135
33652
|
value: function release() {}
|
|
33136
33653
|
}]);
|
|
33137
33654
|
}(exports.BaseCanvas);
|
|
33138
|
-
|
|
33655
|
+
TTCanvas.env = "tt", TTCanvas = __decorate$t([injectable(), __metadata$p("design:paramtypes", [Object])], TTCanvas);
|
|
33139
33656
|
|
|
33140
|
-
var
|
|
33657
|
+
var ttCanvasModule = createModule(TTCanvas, TTContext2d);
|
|
33141
33658
|
|
|
33142
33659
|
var __decorate$s = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
33143
33660
|
var d,
|
|
@@ -33183,15 +33700,15 @@
|
|
|
33183
33700
|
}
|
|
33184
33701
|
}]);
|
|
33185
33702
|
}();
|
|
33186
|
-
var
|
|
33187
|
-
function
|
|
33703
|
+
var TTWindowHandlerContribution = /*#__PURE__*/function (_BaseWindowHandlerCon) {
|
|
33704
|
+
function TTWindowHandlerContribution(global) {
|
|
33188
33705
|
var _this;
|
|
33189
|
-
_classCallCheck(this,
|
|
33190
|
-
_this = _callSuper(this,
|
|
33706
|
+
_classCallCheck(this, TTWindowHandlerContribution);
|
|
33707
|
+
_this = _callSuper(this, TTWindowHandlerContribution), _this.global = global, _this.type = "tt", _this.eventManager = new MiniAppEventManager();
|
|
33191
33708
|
return _this;
|
|
33192
33709
|
}
|
|
33193
|
-
_inherits(
|
|
33194
|
-
return _createClass(
|
|
33710
|
+
_inherits(TTWindowHandlerContribution, _BaseWindowHandlerCon);
|
|
33711
|
+
return _createClass(TTWindowHandlerContribution, [{
|
|
33195
33712
|
key: "container",
|
|
33196
33713
|
get: function get() {
|
|
33197
33714
|
return null;
|
|
@@ -33237,7 +33754,7 @@
|
|
|
33237
33754
|
id: Generator.GenAutoIncrementId().toString(),
|
|
33238
33755
|
canvasControled: !1
|
|
33239
33756
|
};
|
|
33240
|
-
this.canvas = new
|
|
33757
|
+
this.canvas = new TTCanvas(options);
|
|
33241
33758
|
}
|
|
33242
33759
|
}, {
|
|
33243
33760
|
key: "createWindowByCanvas",
|
|
@@ -33253,7 +33770,7 @@
|
|
|
33253
33770
|
width = data.width, height = data.height;
|
|
33254
33771
|
}
|
|
33255
33772
|
var dpr = params.dpr;
|
|
33256
|
-
null == dpr && (dpr = canvas.width / width), this.canvas = new
|
|
33773
|
+
null == dpr && (dpr = canvas.width / width), this.canvas = new TTCanvas({
|
|
33257
33774
|
width: width,
|
|
33258
33775
|
height: height,
|
|
33259
33776
|
dpr: dpr,
|
|
@@ -33300,9 +33817,8 @@
|
|
|
33300
33817
|
}, {
|
|
33301
33818
|
key: "dispatchEvent",
|
|
33302
33819
|
value: function dispatchEvent(event) {
|
|
33303
|
-
var _a, _b, _c, _d;
|
|
33304
33820
|
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 =
|
|
33821
|
+
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
33822
|
f(event);
|
|
33307
33823
|
}), !0);
|
|
33308
33824
|
}
|
|
@@ -33339,11 +33855,11 @@
|
|
|
33339
33855
|
}
|
|
33340
33856
|
}]);
|
|
33341
33857
|
}(exports.BaseWindowHandlerContribution);
|
|
33342
|
-
|
|
33343
|
-
var
|
|
33344
|
-
bind(
|
|
33345
|
-
return ctx.container.get(
|
|
33346
|
-
}).whenTargetNamed(
|
|
33858
|
+
TTWindowHandlerContribution.env = "tt", TTWindowHandlerContribution = __decorate$s([injectable(), __param$n(0, inject(VGlobal)), __metadata$o("design:paramtypes", [Object])], TTWindowHandlerContribution);
|
|
33859
|
+
var ttWindowModule = new ContainerModule(function (bind) {
|
|
33860
|
+
bind(TTWindowHandlerContribution).toSelf(), bind(WindowHandlerContribution).toDynamicValue(function (ctx) {
|
|
33861
|
+
return ctx.container.get(TTWindowHandlerContribution);
|
|
33862
|
+
}).whenTargetNamed(TTWindowHandlerContribution.env);
|
|
33347
33863
|
});
|
|
33348
33864
|
|
|
33349
33865
|
var __decorate$r = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
@@ -33387,7 +33903,7 @@
|
|
|
33387
33903
|
return _regeneratorRuntime().wrap(function _callee$(_context2) {
|
|
33388
33904
|
while (1) switch (_context2.prev = _context2.next) {
|
|
33389
33905
|
case 0:
|
|
33390
|
-
dpr =
|
|
33906
|
+
dpr = tt.getSystemInfoSync().pixelRatio;
|
|
33391
33907
|
_loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop(i) {
|
|
33392
33908
|
var id;
|
|
33393
33909
|
return _regeneratorRuntime().wrap(function _loop$(_context) {
|
|
@@ -33396,15 +33912,11 @@
|
|
|
33396
33912
|
id = canvasIdLists[i];
|
|
33397
33913
|
_context.next = 3;
|
|
33398
33914
|
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;
|
|
33915
|
+
var data = tt.createSelectorQuery();
|
|
33916
|
+
component && (data = data["in"](component)), data.select("#".concat(id)).node().exec(function (res) {
|
|
33405
33917
|
var canvas = res[0].node,
|
|
33406
|
-
width =
|
|
33407
|
-
height =
|
|
33918
|
+
width = canvas.width,
|
|
33919
|
+
height = canvas.height;
|
|
33408
33920
|
canvas.width = width * dpr, canvas.height = height * dpr, canvasMap.set(id, canvas), i >= freeCanvasIdx && freeCanvasList.push(canvas), resolve(null);
|
|
33409
33921
|
});
|
|
33410
33922
|
});
|
|
@@ -33432,11 +33944,11 @@
|
|
|
33432
33944
|
}, _callee);
|
|
33433
33945
|
}));
|
|
33434
33946
|
}
|
|
33435
|
-
var
|
|
33436
|
-
function
|
|
33947
|
+
var TTEnvContribution = /*#__PURE__*/function (_BaseEnvContribution) {
|
|
33948
|
+
function TTEnvContribution() {
|
|
33437
33949
|
var _this;
|
|
33438
|
-
_classCallCheck(this,
|
|
33439
|
-
_this = _callSuper(this,
|
|
33950
|
+
_classCallCheck(this, TTEnvContribution);
|
|
33951
|
+
_this = _callSuper(this, TTEnvContribution), _this.type = "tt", _this.supportEvent = !0, _this.canvasMap = new Map(), _this.freeCanvasList = [], _this.canvasIdx = 0, _this.supportsTouchEvents = !0;
|
|
33440
33952
|
try {
|
|
33441
33953
|
_this.supportsPointerEvents = !!globalThis.PointerEvent, _this.supportsMouseEvents = !!globalThis.MouseEvent;
|
|
33442
33954
|
} catch (err) {
|
|
@@ -33445,8 +33957,8 @@
|
|
|
33445
33957
|
_this.applyStyles = !0;
|
|
33446
33958
|
return _this;
|
|
33447
33959
|
}
|
|
33448
|
-
_inherits(
|
|
33449
|
-
return _createClass(
|
|
33960
|
+
_inherits(TTEnvContribution, _BaseEnvContribution);
|
|
33961
|
+
return _createClass(TTEnvContribution, [{
|
|
33450
33962
|
key: "configure",
|
|
33451
33963
|
value: function configure(service, params) {
|
|
33452
33964
|
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 +33991,7 @@
|
|
|
33479
33991
|
}, {
|
|
33480
33992
|
key: "getDevicePixelRatio",
|
|
33481
33993
|
value: function getDevicePixelRatio() {
|
|
33482
|
-
return
|
|
33994
|
+
return tt.getSystemInfoSync().pixelRatio;
|
|
33483
33995
|
}
|
|
33484
33996
|
}, {
|
|
33485
33997
|
key: "getRequestAnimationFrame",
|
|
@@ -33536,32 +34048,19 @@
|
|
|
33536
34048
|
}
|
|
33537
34049
|
}]);
|
|
33538
34050
|
}(exports.BaseEnvContribution);
|
|
33539
|
-
|
|
34051
|
+
TTEnvContribution = __decorate$r([injectable(), __metadata$n("design:paramtypes", [])], TTEnvContribution);
|
|
33540
34052
|
|
|
33541
|
-
var
|
|
33542
|
-
|
|
34053
|
+
var ttEnvModule = new ContainerModule(function (bind) {
|
|
34054
|
+
ttEnvModule.isTTBound || (ttEnvModule.isTTBound = !0, bind(TTEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TTEnvContribution));
|
|
33543
34055
|
});
|
|
33544
|
-
|
|
33545
|
-
function
|
|
34056
|
+
ttEnvModule.isTTBound = !1;
|
|
34057
|
+
function loadTTEnv(container) {
|
|
33546
34058
|
var loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
|
|
33547
|
-
|
|
34059
|
+
loadTTEnv.__loaded || (loadTTEnv.__loaded = !0, container.load(ttEnvModule), container.load(ttCanvasModule), container.load(ttWindowModule), loadPicker && loadMathPicker(container));
|
|
33548
34060
|
}
|
|
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);
|
|
34061
|
+
loadTTEnv.__loaded = !1;
|
|
34062
|
+
function initTTEnv() {
|
|
34063
|
+
loadTTEnv(container);
|
|
33565
34064
|
}
|
|
33566
34065
|
|
|
33567
34066
|
var __decorate$q = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
@@ -35137,7 +35636,7 @@
|
|
|
35137
35636
|
|
|
35138
35637
|
var roughModule = _roughModule;
|
|
35139
35638
|
|
|
35140
|
-
const version = "0.19.
|
|
35639
|
+
const version = "0.19.3";
|
|
35141
35640
|
preLoadAllModule();
|
|
35142
35641
|
if (isBrowserEnv()) {
|
|
35143
35642
|
loadBrowserEnv(container);
|
|
@@ -35189,8 +35688,25 @@
|
|
|
35189
35688
|
exports.BoundsPicker = BoundsPicker;
|
|
35190
35689
|
exports.CIRCLE_NUMBER_TYPE = CIRCLE_NUMBER_TYPE;
|
|
35191
35690
|
exports.Canvas3DDrawItemInterceptor = Canvas3DDrawItemInterceptor;
|
|
35691
|
+
exports.CanvasArc3dPicker = CanvasArc3dPicker;
|
|
35692
|
+
exports.CanvasArcPicker = CanvasArcPicker;
|
|
35693
|
+
exports.CanvasAreaPicker = CanvasAreaPicker;
|
|
35694
|
+
exports.CanvasCirclePicker = CanvasCirclePicker;
|
|
35192
35695
|
exports.CanvasFactory = CanvasFactory;
|
|
35696
|
+
exports.CanvasGlyphPicker = CanvasGlyphPicker;
|
|
35697
|
+
exports.CanvasGroupPicker = CanvasGroupPicker;
|
|
35698
|
+
exports.CanvasImagePicker = CanvasImagePicker;
|
|
35699
|
+
exports.CanvasLinePicker = CanvasLinePicker;
|
|
35700
|
+
exports.CanvasPathPicker = CanvasPathPicker;
|
|
35701
|
+
exports.CanvasPickerContribution = CanvasPickerContribution;
|
|
35702
|
+
exports.CanvasPolygonPicker = CanvasPolygonPicker;
|
|
35703
|
+
exports.CanvasPyramid3dPicker = CanvasPyramid3dPicker;
|
|
35704
|
+
exports.CanvasRect3dPicker = CanvasRect3dPicker;
|
|
35705
|
+
exports.CanvasRectPicker = CanvasRectPicker;
|
|
35706
|
+
exports.CanvasRichTextPicker = CanvasRichTextPicker;
|
|
35707
|
+
exports.CanvasSymbolPicker = CanvasSymbolPicker;
|
|
35193
35708
|
exports.CanvasTextLayout = CanvasTextLayout;
|
|
35709
|
+
exports.CanvasTextPicker = CanvasTextPicker;
|
|
35194
35710
|
exports.CbAnimate = CbAnimate;
|
|
35195
35711
|
exports.Circle = Circle;
|
|
35196
35712
|
exports.CircleRender = CircleRender;
|
|
@@ -35315,6 +35831,18 @@
|
|
|
35315
35831
|
exports.ManualTickHandler = ManualTickHandler;
|
|
35316
35832
|
exports.ManualTicker = ManualTicker;
|
|
35317
35833
|
exports.Mat4Allocate = Mat4Allocate;
|
|
35834
|
+
exports.MathArcPicker = MathArcPicker;
|
|
35835
|
+
exports.MathAreaPicker = MathAreaPicker;
|
|
35836
|
+
exports.MathCirclePicker = MathCirclePicker;
|
|
35837
|
+
exports.MathGlyphPicker = MathGlyphPicker;
|
|
35838
|
+
exports.MathImagePicker = MathImagePicker;
|
|
35839
|
+
exports.MathLinePicker = MathLinePicker;
|
|
35840
|
+
exports.MathPathPicker = MathPathPicker;
|
|
35841
|
+
exports.MathPickerContribution = MathPickerContribution;
|
|
35842
|
+
exports.MathPolygonPicker = MathPolygonPicker;
|
|
35843
|
+
exports.MathRectPicker = MathRectPicker;
|
|
35844
|
+
exports.MathSymbolPicker = MathSymbolPicker;
|
|
35845
|
+
exports.MathTextPicker = MathTextPicker;
|
|
35318
35846
|
exports.MatrixAllocate = MatrixAllocate;
|
|
35319
35847
|
exports.Meteor = Meteor;
|
|
35320
35848
|
exports.MonotoneX = MonotoneX;
|
|
@@ -35555,6 +36083,7 @@
|
|
|
35555
36083
|
exports.initFeishuEnv = initFeishuEnv;
|
|
35556
36084
|
exports.initLynxEnv = initLynxEnv;
|
|
35557
36085
|
exports.initNodeEnv = initNodeEnv;
|
|
36086
|
+
exports.initTTEnv = initTTEnv;
|
|
35558
36087
|
exports.initTaroEnv = initTaroEnv;
|
|
35559
36088
|
exports.initWxEnv = initWxEnv;
|
|
35560
36089
|
exports.inject = inject;
|
|
@@ -35581,6 +36110,7 @@
|
|
|
35581
36110
|
exports.loadFeishuEnv = loadFeishuEnv;
|
|
35582
36111
|
exports.loadLynxEnv = loadLynxEnv;
|
|
35583
36112
|
exports.loadNodeEnv = loadNodeEnv;
|
|
36113
|
+
exports.loadTTEnv = loadTTEnv;
|
|
35584
36114
|
exports.loadTaroEnv = loadTaroEnv;
|
|
35585
36115
|
exports.loadWxEnv = loadWxEnv;
|
|
35586
36116
|
exports.lookAt = lookAt;
|
|
@@ -35702,6 +36232,7 @@
|
|
|
35702
36232
|
exports.transformMat4 = transformMat4;
|
|
35703
36233
|
exports.transformUtil = transformUtil;
|
|
35704
36234
|
exports.translate = translate;
|
|
36235
|
+
exports.ttEnvModule = ttEnvModule;
|
|
35705
36236
|
exports.version = version;
|
|
35706
36237
|
exports.verticalLayout = verticalLayout;
|
|
35707
36238
|
exports.vglobal = vglobal;
|