@mtgame/core 0.1.121 → 0.1.122
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 -1
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/waterpolo-game-statistic.js +13 -2
- package/esm2015/models/waterpolo-statistic.js +2 -1
- package/fesm2015/mtgame-core.js +13 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/waterpolo-game-statistic.d.ts +2 -1
- package/models/waterpolo-statistic.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -6362,6 +6362,7 @@
|
|
|
6362
6362
|
total_sh_goals: 'totalShGoals',
|
|
6363
6363
|
shot_misses: 'shotMisses',
|
|
6364
6364
|
shots_on_goal: 'shotsOnGoal',
|
|
6365
|
+
shots_on_goal_percent: 'shotsOnGoalPercent',
|
|
6365
6366
|
shots_blocked: 'shotsBlocked',
|
|
6366
6367
|
shots: 'shots',
|
|
6367
6368
|
total_shots: 'totalShots',
|
|
@@ -10576,6 +10577,16 @@
|
|
|
10576
10577
|
enumerable: false,
|
|
10577
10578
|
configurable: true
|
|
10578
10579
|
});
|
|
10580
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "shotsOnGoalPercent", {
|
|
10581
|
+
get: function () {
|
|
10582
|
+
if (!this.shots || !this.shotsOnGoal) {
|
|
10583
|
+
return 0;
|
|
10584
|
+
}
|
|
10585
|
+
return Math.round(1000 * this.shotsOnGoal / this.shots) / 10;
|
|
10586
|
+
},
|
|
10587
|
+
enumerable: false,
|
|
10588
|
+
configurable: true
|
|
10589
|
+
});
|
|
10579
10590
|
Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShots", {
|
|
10580
10591
|
get: function () {
|
|
10581
10592
|
return this.shots + (this.shootoutAttempts || 0);
|
|
@@ -10710,7 +10721,12 @@
|
|
|
10710
10721
|
});
|
|
10711
10722
|
Object.defineProperty(WaterpoloGameStatistic.prototype, "penaltyTime", {
|
|
10712
10723
|
get: function () {
|
|
10713
|
-
|
|
10724
|
+
if (!this.penaltyMinutes) {
|
|
10725
|
+
return '00:00';
|
|
10726
|
+
}
|
|
10727
|
+
var minutes = Math.floor(this.penaltyMinutes / 60);
|
|
10728
|
+
var seconds = Math.floor(this.penaltyMinutes - minutes * 60);
|
|
10729
|
+
return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
|
|
10714
10730
|
},
|
|
10715
10731
|
enumerable: false,
|
|
10716
10732
|
configurable: true
|