@mtgame/core 0.1.31 → 0.1.33
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 +64 -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 +3 -1
- package/esm2015/models/football-statistic.js +28 -1
- package/esm2015/models/hockey-game-log.js +4 -2
- package/esm2015/models/hockey-game-statistic.js +3 -1
- package/esm2015/models/hockey-statistic.js +3 -1
- package/esm5/localization/hockey-game-log-types.js +3 -1
- package/esm5/models/football-statistic.js +56 -1
- package/esm5/models/hockey-game-log.js +4 -2
- package/esm5/models/hockey-game-statistic.js +3 -1
- package/esm5/models/hockey-statistic.js +3 -1
- package/fesm2015/mtgame-core.js +36 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +64 -1
- package/fesm5/mtgame-core.js.map +1 -1
- package/localization/hockey-game-log-types.d.ts +2 -0
- package/models/football-statistic.d.ts +7 -0
- package/models/hockey-game-log.d.ts +3 -1
- package/models/hockey-game-statistic.d.ts +2 -0
- package/models/hockey-statistic.d.ts +2 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm5/mtgame-core.js
CHANGED
|
@@ -3073,6 +3073,8 @@ var HockeyGameLogTypes;
|
|
|
3073
3073
|
HockeyGameLogTypes[HockeyGameLogTypes["timeout"] = 20] = "timeout";
|
|
3074
3074
|
HockeyGameLogTypes[HockeyGameLogTypes["penalty_start"] = 21] = "penalty_start";
|
|
3075
3075
|
HockeyGameLogTypes[HockeyGameLogTypes["penalty_end"] = 22] = "penalty_end";
|
|
3076
|
+
HockeyGameLogTypes[HockeyGameLogTypes["after_game_shootout_attempt"] = 23] = "after_game_shootout_attempt";
|
|
3077
|
+
HockeyGameLogTypes[HockeyGameLogTypes["after_game_shootout_goal"] = 24] = "after_game_shootout_goal";
|
|
3076
3078
|
})(HockeyGameLogTypes || (HockeyGameLogTypes = {}));
|
|
3077
3079
|
var HockeyAdvantageTypes;
|
|
3078
3080
|
(function (HockeyAdvantageTypes) {
|
|
@@ -3119,7 +3121,7 @@ var HockeyGameLog = /** @class */ (function (_super) {
|
|
|
3119
3121
|
configurable: true
|
|
3120
3122
|
});
|
|
3121
3123
|
HockeyGameLog.prototype.isScoreType = function () {
|
|
3122
|
-
return [HockeyGameLogTypes.goal, HockeyGameLogTypes.shootout_goal].indexOf(this.logType) > -1;
|
|
3124
|
+
return [HockeyGameLogTypes.goal, HockeyGameLogTypes.shootout_goal, HockeyGameLogTypes.after_game_shootout_goal].indexOf(this.logType) > -1;
|
|
3123
3125
|
};
|
|
3124
3126
|
HockeyGameLog.prototype.isPenaltyType = function () {
|
|
3125
3127
|
return [
|
|
@@ -3321,6 +3323,8 @@ var HockeyGameStatistic = /** @class */ (function (_super) {
|
|
|
3321
3323
|
sh_assists: 'shAssists',
|
|
3322
3324
|
shootout_attempts: 'shootoutAttempts',
|
|
3323
3325
|
shootout_goals: 'shootoutGoals',
|
|
3326
|
+
after_game_shootout_attempts: 'afterGameShootoutAttempts',
|
|
3327
|
+
after_game_shootout_goals: 'afterGameShootoutGoals',
|
|
3324
3328
|
block_shots: 'blockShots',
|
|
3325
3329
|
face_off_losses: 'faceOffLosses',
|
|
3326
3330
|
face_off_wins: 'faceOffWins',
|
|
@@ -3434,6 +3438,8 @@ var HockeyStatistic = /** @class */ (function (_super) {
|
|
|
3434
3438
|
sh_assists: 'shAssists',
|
|
3435
3439
|
shootout_attempts: 'shootoutAttempts',
|
|
3436
3440
|
shootout_goals: 'shootoutGoals',
|
|
3441
|
+
after_game_shootout_attempts: 'afterGameShootoutAttempts',
|
|
3442
|
+
after_game_shootout_goals: 'afterGameShootoutGoals',
|
|
3437
3443
|
block_shots: 'blockShots',
|
|
3438
3444
|
face_off_losses: 'faceOffLosses',
|
|
3439
3445
|
face_off_wins: 'faceOffWins',
|
|
@@ -3892,6 +3898,61 @@ var FootballStatistic = /** @class */ (function (_super) {
|
|
|
3892
3898
|
enumerable: true,
|
|
3893
3899
|
configurable: true
|
|
3894
3900
|
});
|
|
3901
|
+
Object.defineProperty(FootballStatistic.prototype, "tournamentTeamGamesCount", {
|
|
3902
|
+
get: function () {
|
|
3903
|
+
return this.tournamentTeam && this.tournamentTeam.gamesCount;
|
|
3904
|
+
},
|
|
3905
|
+
enumerable: true,
|
|
3906
|
+
configurable: true
|
|
3907
|
+
});
|
|
3908
|
+
Object.defineProperty(FootballStatistic.prototype, "tournamentTeamWonGamesCount", {
|
|
3909
|
+
get: function () {
|
|
3910
|
+
return this.tournamentTeam && this.tournamentTeam.wonGamesCount;
|
|
3911
|
+
},
|
|
3912
|
+
enumerable: true,
|
|
3913
|
+
configurable: true
|
|
3914
|
+
});
|
|
3915
|
+
Object.defineProperty(FootballStatistic.prototype, "tournamentTeamDrawGamesCount", {
|
|
3916
|
+
get: function () {
|
|
3917
|
+
return this.tournamentTeam && this.tournamentTeam.drawGamesCount;
|
|
3918
|
+
},
|
|
3919
|
+
enumerable: true,
|
|
3920
|
+
configurable: true
|
|
3921
|
+
});
|
|
3922
|
+
Object.defineProperty(FootballStatistic.prototype, "tournamentTeamLostGamesCount", {
|
|
3923
|
+
get: function () {
|
|
3924
|
+
if (!this.tournamentTeam) {
|
|
3925
|
+
return null;
|
|
3926
|
+
}
|
|
3927
|
+
return this.tournamentTeam.gamesCount - this.tournamentTeam.drawGamesCount - this.tournamentTeam.wonGamesCount;
|
|
3928
|
+
},
|
|
3929
|
+
enumerable: true,
|
|
3930
|
+
configurable: true
|
|
3931
|
+
});
|
|
3932
|
+
Object.defineProperty(FootballStatistic.prototype, "tournamentTeamScoreSum", {
|
|
3933
|
+
get: function () {
|
|
3934
|
+
return this.tournamentTeam && this.tournamentTeam.scoreSum;
|
|
3935
|
+
},
|
|
3936
|
+
enumerable: true,
|
|
3937
|
+
configurable: true
|
|
3938
|
+
});
|
|
3939
|
+
Object.defineProperty(FootballStatistic.prototype, "tournamentTeamMissedSum", {
|
|
3940
|
+
get: function () {
|
|
3941
|
+
return this.tournamentTeam && this.tournamentTeam.missedSum;
|
|
3942
|
+
},
|
|
3943
|
+
enumerable: true,
|
|
3944
|
+
configurable: true
|
|
3945
|
+
});
|
|
3946
|
+
Object.defineProperty(FootballStatistic.prototype, "tournamentTeamPlusMinus", {
|
|
3947
|
+
get: function () {
|
|
3948
|
+
if (!this.tournamentTeam) {
|
|
3949
|
+
return null;
|
|
3950
|
+
}
|
|
3951
|
+
return this.tournamentTeam.scoreSum - this.tournamentTeam.missedSum;
|
|
3952
|
+
},
|
|
3953
|
+
enumerable: true,
|
|
3954
|
+
configurable: true
|
|
3955
|
+
});
|
|
3895
3956
|
FootballStatistic.toFront = function (data) { };
|
|
3896
3957
|
FootballStatistic.toBack = function (data) { };
|
|
3897
3958
|
__decorate([
|
|
@@ -8326,6 +8387,8 @@ var HockeyGameLogTypeLocalization = (_a$2 = {},
|
|
|
8326
8387
|
_a$2[HockeyGameLogTypes.goal] = 'Гол',
|
|
8327
8388
|
_a$2[HockeyGameLogTypes.shootout_attempt] = 'Булит промах',
|
|
8328
8389
|
_a$2[HockeyGameLogTypes.shootout_goal] = 'Булит гол',
|
|
8390
|
+
_a$2[HockeyGameLogTypes.after_game_shootout_attempt] = 'Булит промах',
|
|
8391
|
+
_a$2[HockeyGameLogTypes.after_game_shootout_goal] = 'Булит гол',
|
|
8329
8392
|
_a$2[HockeyGameLogTypes.assist] = 'Передача',
|
|
8330
8393
|
_a$2[HockeyGameLogTypes.block_shot] = 'Блокировка броска',
|
|
8331
8394
|
_a$2[HockeyGameLogTypes.minor_penalty] = 'Малый штраф',
|