@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
package/fesm5/mtgame-core.js
CHANGED
|
@@ -2797,6 +2797,16 @@ var HockeyStatistic = /** @class */ (function (_super) {
|
|
|
2797
2797
|
enumerable: true,
|
|
2798
2798
|
configurable: true
|
|
2799
2799
|
});
|
|
2800
|
+
Object.defineProperty(HockeyStatistic.prototype, "gamesWonPercent", {
|
|
2801
|
+
get: function () {
|
|
2802
|
+
if (!this.gamesCount) {
|
|
2803
|
+
return 0;
|
|
2804
|
+
}
|
|
2805
|
+
return Math.floor(1000 * this.wonGamesCount / this.gamesCount) / 10;
|
|
2806
|
+
},
|
|
2807
|
+
enumerable: true,
|
|
2808
|
+
configurable: true
|
|
2809
|
+
});
|
|
2800
2810
|
HockeyStatistic.toFront = function (data) { };
|
|
2801
2811
|
HockeyStatistic.toBack = function (data) { };
|
|
2802
2812
|
__decorate([
|
|
@@ -2817,6 +2827,7 @@ var HockeyStatistic = /** @class */ (function (_super) {
|
|
|
2817
2827
|
win_lose: 'winLose',
|
|
2818
2828
|
games_count: 'gamesCount',
|
|
2819
2829
|
won_games_count: 'wonGamesCount',
|
|
2830
|
+
lose_games_count: 'loseGamesCount',
|
|
2820
2831
|
points: 'points',
|
|
2821
2832
|
pp_shots: 'ppShots',
|
|
2822
2833
|
pp_shot_misses: 'ppShotMisses',
|