@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
package/fesm5/mtgame-core.js
CHANGED
|
@@ -2513,6 +2513,23 @@ var HockeyGameStatistic = /** @class */ (function (_super) {
|
|
|
2513
2513
|
enumerable: true,
|
|
2514
2514
|
configurable: true
|
|
2515
2515
|
});
|
|
2516
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "shotsAgainst", {
|
|
2517
|
+
get: function () {
|
|
2518
|
+
return (this.saves || 0) + (this.goalsAgainst || 0);
|
|
2519
|
+
},
|
|
2520
|
+
enumerable: true,
|
|
2521
|
+
configurable: true
|
|
2522
|
+
});
|
|
2523
|
+
Object.defineProperty(HockeyGameStatistic.prototype, "savesPercent", {
|
|
2524
|
+
get: function () {
|
|
2525
|
+
if (!this.shotsAgainst || !this.saves) {
|
|
2526
|
+
return 0;
|
|
2527
|
+
}
|
|
2528
|
+
return Math.round(1000 * this.saves / this.shotsAgainst) / 10;
|
|
2529
|
+
},
|
|
2530
|
+
enumerable: true,
|
|
2531
|
+
configurable: true
|
|
2532
|
+
});
|
|
2516
2533
|
HockeyGameStatistic.toFront = function (data) { };
|
|
2517
2534
|
HockeyGameStatistic.toBack = function (data) { };
|
|
2518
2535
|
__decorate([
|