@mtgame/core 0.0.54 → 0.0.55
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 +11 -0
- 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/models/hockey-statistic.js +8 -1
- package/esm5/models/hockey-statistic.js +12 -1
- package/fesm2015/mtgame-core.js +7 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +11 -0
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/hockey-statistic.d.ts +2 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -3010,6 +3010,16 @@
|
|
|
3010
3010
|
enumerable: true,
|
|
3011
3011
|
configurable: true
|
|
3012
3012
|
});
|
|
3013
|
+
Object.defineProperty(HockeyStatistic.prototype, "gamesWonPercent", {
|
|
3014
|
+
get: function () {
|
|
3015
|
+
if (!this.gamesCount) {
|
|
3016
|
+
return 0;
|
|
3017
|
+
}
|
|
3018
|
+
return Math.floor(1000 * this.wonGamesCount / this.gamesCount) / 10;
|
|
3019
|
+
},
|
|
3020
|
+
enumerable: true,
|
|
3021
|
+
configurable: true
|
|
3022
|
+
});
|
|
3013
3023
|
HockeyStatistic.toFront = function (data) { };
|
|
3014
3024
|
HockeyStatistic.toBack = function (data) { };
|
|
3015
3025
|
__decorate([
|
|
@@ -3030,6 +3040,7 @@
|
|
|
3030
3040
|
win_lose: 'winLose',
|
|
3031
3041
|
games_count: 'gamesCount',
|
|
3032
3042
|
won_games_count: 'wonGamesCount',
|
|
3043
|
+
lose_games_count: 'loseGamesCount',
|
|
3033
3044
|
points: 'points',
|
|
3034
3045
|
pp_shots: 'ppShots',
|
|
3035
3046
|
pp_shot_misses: 'ppShotMisses',
|