@mtgame/core 0.1.121 → 0.1.123
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 -2
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/waterpolo-game-statistic.js +13 -3
- package/esm2015/models/waterpolo-statistic.js +2 -1
- package/fesm2015/mtgame-core.js +13 -2
- 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',
|
|
@@ -10564,7 +10565,6 @@
|
|
|
10564
10565
|
return (this.shShotMisses || 0) + (this.shShotsOnGoal || 0) + (this.shShotsBlocked || 0) +
|
|
10565
10566
|
(this.shCornerMisses || 0) + (this.shCornerOnGoals || 0) +
|
|
10566
10567
|
(this.shFreeKickMisses || 0) + (this.shFreeKickOnGoals || 0);
|
|
10567
|
-
;
|
|
10568
10568
|
},
|
|
10569
10569
|
enumerable: false,
|
|
10570
10570
|
configurable: true
|
|
@@ -10576,6 +10576,16 @@
|
|
|
10576
10576
|
enumerable: false,
|
|
10577
10577
|
configurable: true
|
|
10578
10578
|
});
|
|
10579
|
+
Object.defineProperty(WaterpoloGameStatistic.prototype, "shotsOnGoalPercent", {
|
|
10580
|
+
get: function () {
|
|
10581
|
+
if (!this.shots || !this.shotsOnGoal) {
|
|
10582
|
+
return 0;
|
|
10583
|
+
}
|
|
10584
|
+
return Math.round(1000 * this.shotsOnGoal / this.shots) / 10;
|
|
10585
|
+
},
|
|
10586
|
+
enumerable: false,
|
|
10587
|
+
configurable: true
|
|
10588
|
+
});
|
|
10579
10589
|
Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShots", {
|
|
10580
10590
|
get: function () {
|
|
10581
10591
|
return this.shots + (this.shootoutAttempts || 0);
|
|
@@ -10710,7 +10720,12 @@
|
|
|
10710
10720
|
});
|
|
10711
10721
|
Object.defineProperty(WaterpoloGameStatistic.prototype, "penaltyTime", {
|
|
10712
10722
|
get: function () {
|
|
10713
|
-
|
|
10723
|
+
if (!this.penaltyMinutes) {
|
|
10724
|
+
return '00:00';
|
|
10725
|
+
}
|
|
10726
|
+
var minutes = Math.floor(this.penaltyMinutes / 60);
|
|
10727
|
+
var seconds = Math.floor(this.penaltyMinutes - minutes * 60);
|
|
10728
|
+
return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
|
|
10714
10729
|
},
|
|
10715
10730
|
enumerable: false,
|
|
10716
10731
|
configurable: true
|