@mtgame/core 0.0.31 → 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 +17 -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-game-statistic.js +10 -1
- package/esm5/models/hockey-game-statistic.js +18 -1
- package/fesm2015/mtgame-core.js +9 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +17 -0
- 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([
|