@mtgame/core 0.0.30 → 0.0.32
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 +18 -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/models/hockey-game-statistic.js +10 -1
- package/esm2015/models/hockey-statistic.js +2 -2
- package/esm5/models/hockey-game-statistic.js +18 -1
- package/esm5/models/hockey-statistic.js +2 -2
- package/fesm2015/mtgame-core.js +10 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +18 -1
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/hockey-game-statistic.d.ts +2 -0
- package/package.json +1 -1
|
@@ -2726,6 +2726,23 @@
|
|
|
2726
2726
|
enumerable: true,
|
|
2727
2727
|
configurable: true
|
|
2728
2728
|
});
|
|
2729
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "shotsAgainst", {
|
|
2730
|
+
get: function () {
|
|
2731
|
+
return (this.saves || 0) + (this.goalsAgainst || 0);
|
|
2732
|
+
},
|
|
2733
|
+
enumerable: true,
|
|
2734
|
+
configurable: true
|
|
2735
|
+
});
|
|
2736
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "savesPercent", {
|
|
2737
|
+
get: function () {
|
|
2738
|
+
if (!this.shotsAgainst || !this.saves) {
|
|
2739
|
+
return 0;
|
|
2740
|
+
}
|
|
2741
|
+
return Math.round(1000 * this.saves / this.shotsAgainst) / 10;
|
|
2742
|
+
},
|
|
2743
|
+
enumerable: true,
|
|
2744
|
+
configurable: true
|
|
2745
|
+
});
|
|
2729
2746
|
HockeyGameStatistic.toFront = function (data) { };
|
|
2730
2747
|
HockeyGameStatistic.toBack = function (data) { };
|
|
2731
2748
|
__decorate([
|
|
@@ -2790,7 +2807,7 @@
|
|
|
2790
2807
|
Object.defineProperty(HockeyStatistic.prototype, "userMinutes", {
|
|
2791
2808
|
get: function () {
|
|
2792
2809
|
var minutes = Math.floor(this.gameTime / 60);
|
|
2793
|
-
var seconds = this.gameTime - minutes * 60;
|
|
2810
|
+
var seconds = Math.floor(this.gameTime - minutes * 60);
|
|
2794
2811
|
return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
|
|
2795
2812
|
},
|
|
2796
2813
|
enumerable: true,
|