@mtgame/core 0.0.12 → 0.0.14
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/bundles/mtgame-core.umd.js +47 -1
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/bundles/mtgame-core.umd.min.js +1 -1
- package/bundles/mtgame-core.umd.min.js.map +1 -1
- package/esm2015/localization/hockey-game-log-types.js +4 -3
- package/esm2015/models/hockey-game-log.js +2 -1
- package/esm2015/models/hockey-game-statistic.js +16 -1
- package/esm2015/models/hockey-statistic.js +6 -1
- package/esm5/localization/hockey-game-log-types.js +3 -2
- package/esm5/models/hockey-game-log.js +2 -1
- package/esm5/models/hockey-game-statistic.js +36 -1
- package/esm5/models/hockey-statistic.js +10 -1
- package/fesm2015/mtgame-core.js +24 -2
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +47 -1
- package/fesm5/mtgame-core.js.map +1 -1
- package/localization/hockey-game-log-types.d.ts +1 -0
- package/models/hockey-game-log.d.ts +2 -1
- package/models/hockey-game-statistic.d.ts +5 -0
- package/models/hockey-statistic.d.ts +3 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm5/mtgame-core.js
CHANGED
|
@@ -2225,6 +2225,7 @@ var HockeyGameLogTypes;
|
|
|
2225
2225
|
HockeyGameLogTypes[HockeyGameLogTypes["face_off_lose"] = 17] = "face_off_lose";
|
|
2226
2226
|
HockeyGameLogTypes[HockeyGameLogTypes["face_off_win"] = 18] = "face_off_win";
|
|
2227
2227
|
HockeyGameLogTypes[HockeyGameLogTypes["save"] = 19] = "save";
|
|
2228
|
+
HockeyGameLogTypes[HockeyGameLogTypes["timeout"] = 20] = "timeout";
|
|
2228
2229
|
})(HockeyGameLogTypes || (HockeyGameLogTypes = {}));
|
|
2229
2230
|
var HockeyAdvantageTypes;
|
|
2230
2231
|
(function (HockeyAdvantageTypes) {
|
|
@@ -2307,6 +2308,41 @@ var HockeyGameStatistic = /** @class */ (function (_super) {
|
|
|
2307
2308
|
enumerable: true,
|
|
2308
2309
|
configurable: true
|
|
2309
2310
|
});
|
|
2311
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "ppShots", {
|
|
2312
|
+
get: function () {
|
|
2313
|
+
return (this.ppShotMisses || 0) + (this.ppShotsOnGoal || 0) + (this.ppShotsBlocked || 0);
|
|
2314
|
+
},
|
|
2315
|
+
enumerable: true,
|
|
2316
|
+
configurable: true
|
|
2317
|
+
});
|
|
2318
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "evShots", {
|
|
2319
|
+
get: function () {
|
|
2320
|
+
return (this.evShotMisses || 0) + (this.evShotsOnGoal || 0) + (this.evShotsBlocked || 0);
|
|
2321
|
+
},
|
|
2322
|
+
enumerable: true,
|
|
2323
|
+
configurable: true
|
|
2324
|
+
});
|
|
2325
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "shShots", {
|
|
2326
|
+
get: function () {
|
|
2327
|
+
return (this.shShotMisses || 0) + (this.shShotsOnGoal || 0) + (this.shShotsBlocked || 0);
|
|
2328
|
+
},
|
|
2329
|
+
enumerable: true,
|
|
2330
|
+
configurable: true
|
|
2331
|
+
});
|
|
2332
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "shots", {
|
|
2333
|
+
get: function () {
|
|
2334
|
+
return this.goals + this.ppShots + this.evShots + this.shShots;
|
|
2335
|
+
},
|
|
2336
|
+
enumerable: true,
|
|
2337
|
+
configurable: true
|
|
2338
|
+
});
|
|
2339
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "goals", {
|
|
2340
|
+
get: function () {
|
|
2341
|
+
return (this.ppGoals || 0) + (this.shGoals || 0) + (this.evGoals || 0);
|
|
2342
|
+
},
|
|
2343
|
+
enumerable: true,
|
|
2344
|
+
configurable: true
|
|
2345
|
+
});
|
|
2310
2346
|
Object.defineProperty(HockeyGameStatistic.prototype, "assists", {
|
|
2311
2347
|
get: function () {
|
|
2312
2348
|
return (this.ppAssists || 0) + (this.evAssists || 0) + (this.shAssists || 0);
|
|
@@ -2382,6 +2418,13 @@ var HockeyStatistic = /** @class */ (function (_super) {
|
|
|
2382
2418
|
function HockeyStatistic() {
|
|
2383
2419
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2384
2420
|
}
|
|
2421
|
+
Object.defineProperty(HockeyStatistic.prototype, "assists", {
|
|
2422
|
+
get: function () {
|
|
2423
|
+
return (this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0);
|
|
2424
|
+
},
|
|
2425
|
+
enumerable: true,
|
|
2426
|
+
configurable: true
|
|
2427
|
+
});
|
|
2385
2428
|
HockeyStatistic.toFront = function (data) { };
|
|
2386
2429
|
HockeyStatistic.toBack = function (data) { };
|
|
2387
2430
|
__decorate([
|
|
@@ -2437,6 +2480,8 @@ var HockeyStatistic = /** @class */ (function (_super) {
|
|
|
2437
2480
|
block_shots: 'blockShots',
|
|
2438
2481
|
face_off_losses: 'faceOffLosses',
|
|
2439
2482
|
face_off_wins: 'faceOffWins',
|
|
2483
|
+
face_offs: 'faceOffs',
|
|
2484
|
+
face_off_percent: 'faceOffPercent',
|
|
2440
2485
|
saves: 'saves',
|
|
2441
2486
|
goals_against: 'goalsAgainst',
|
|
2442
2487
|
safety_rate: 'safetyRate',
|
|
@@ -5722,7 +5767,7 @@ var HockeyGameLogTypeLocalization = (_a$2 = {},
|
|
|
5722
5767
|
_a$2[HockeyGameLogTypes.shootout_goal] = 'Булит гол',
|
|
5723
5768
|
_a$2[HockeyGameLogTypes.assist] = 'Передача',
|
|
5724
5769
|
_a$2[HockeyGameLogTypes.block_shot] = 'Блокировка броска',
|
|
5725
|
-
_a$2[HockeyGameLogTypes.minor_penalty] = '
|
|
5770
|
+
_a$2[HockeyGameLogTypes.minor_penalty] = 'Малый штраф',
|
|
5726
5771
|
_a$2[HockeyGameLogTypes.major_penalty] = 'Большой штраф',
|
|
5727
5772
|
_a$2[HockeyGameLogTypes.misconduct_penalty] = 'Дисциплинарный штраф',
|
|
5728
5773
|
_a$2[HockeyGameLogTypes.game_misconduct_penalty] = 'Дисциплинарный штраф до конца игры',
|
|
@@ -5731,6 +5776,7 @@ var HockeyGameLogTypeLocalization = (_a$2 = {},
|
|
|
5731
5776
|
_a$2[HockeyGameLogTypes.face_off_lose] = 'Проирыш в вбрасывании',
|
|
5732
5777
|
_a$2[HockeyGameLogTypes.face_off_win] = 'Победа в вбрасывании',
|
|
5733
5778
|
_a$2[HockeyGameLogTypes.save] = 'Отражен бросок',
|
|
5779
|
+
_a$2[HockeyGameLogTypes.timeout] = 'Таймаут',
|
|
5734
5780
|
_a$2);
|
|
5735
5781
|
|
|
5736
5782
|
var _a$3;
|