@mtgame/core 0.1.140 → 0.1.141
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 +125 -1
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/waterpolo-game-statistic.js +58 -1
- package/esm2015/models/waterpolo-statistic.js +16 -1
- package/fesm2015/mtgame-core.js +72 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/waterpolo-game-statistic.d.ts +13 -0
- package/models/waterpolo-statistic.d.ts +15 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm2015/mtgame-core.js
CHANGED
|
@@ -5145,9 +5145,24 @@ WaterpoloStatistic = __decorate([
|
|
|
5145
5145
|
shootout_shots: 'shootoutShots',
|
|
5146
5146
|
shootout_goals_percent: 'shootoutGoalsPercent',
|
|
5147
5147
|
/*goalie stat*/
|
|
5148
|
+
position_attack_saves: 'positionAttackSaves',
|
|
5149
|
+
position_attack_shots_against: 'positionAttackShotsAgainst',
|
|
5150
|
+
position_attack_saves_percent: 'positionAttackSavesPercent',
|
|
5148
5151
|
counterattack_saves: 'counterAttackSaves',
|
|
5152
|
+
counterattack_shots_against: 'counterAttackShotsAgainst',
|
|
5153
|
+
counterattack_saves_percent: 'counterAttackSavesPercent',
|
|
5149
5154
|
center_forward_saves: 'centerForwardSaves',
|
|
5155
|
+
center_forward_shots_against: 'centerForwardShotsAgainst',
|
|
5156
|
+
center_forward_saves_percent: 'centerForwardSavesPercent',
|
|
5157
|
+
maneuver_saves: 'maneuverSaves',
|
|
5158
|
+
maneuver_shots_against: 'maneuverShotsAgainst',
|
|
5159
|
+
maneuver_saves_percent: 'maneuverSavesPercent',
|
|
5150
5160
|
free_kick_saves: 'freeKickSaves',
|
|
5161
|
+
free_kick_shots_against: 'freeKickShotsAgainst',
|
|
5162
|
+
free_kick_saves_percent: 'freeKickSavesPercent',
|
|
5163
|
+
corner_saves: 'cornerSaves',
|
|
5164
|
+
corner_shots_against: 'cornerShotsAgainst',
|
|
5165
|
+
corner_saves_percent: 'cornerSavesPercent',
|
|
5151
5166
|
in_game_saves: 'inGameSaves',
|
|
5152
5167
|
total_sh_saves: 'totalShSaves',
|
|
5153
5168
|
saves: 'saves',
|
|
@@ -9047,21 +9062,78 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
|
|
|
9047
9062
|
return (this.totalGoals || 0) + (this.assists || 0);
|
|
9048
9063
|
}
|
|
9049
9064
|
/*goalie stat */
|
|
9065
|
+
get positionAttackSaves() {
|
|
9066
|
+
return (this.ppSaves || 0) + (this.shSaves || 0) + (this.evSaves || 0);
|
|
9067
|
+
}
|
|
9068
|
+
get positionAttackShotsAgainst() {
|
|
9069
|
+
return this.positionAttackSaves + (this.goalsAgainst || 0);
|
|
9070
|
+
}
|
|
9071
|
+
get positionAttackSavesPercent() {
|
|
9072
|
+
if (!this.positionAttackSaves || !this.positionAttackShotsAgainst) {
|
|
9073
|
+
return 0;
|
|
9074
|
+
}
|
|
9075
|
+
return Math.round(1000 * this.positionAttackSaves / this.positionAttackShotsAgainst) / 10;
|
|
9076
|
+
}
|
|
9050
9077
|
get counterAttackSaves() {
|
|
9051
9078
|
return (this.ppCounterAttackSaves || 0) + (this.shCounterAttackSaves || 0) + (this.evCounterAttackSaves || 0);
|
|
9052
9079
|
}
|
|
9080
|
+
get counterAttackShotsAgainst() {
|
|
9081
|
+
return this.counterAttackSaves + (this.counterAttackGoalsAgainst || 0);
|
|
9082
|
+
}
|
|
9083
|
+
get counterAttackSavesPercent() {
|
|
9084
|
+
if (!this.counterAttackSaves || !this.counterAttackShotsAgainst) {
|
|
9085
|
+
return 0;
|
|
9086
|
+
}
|
|
9087
|
+
return Math.round(1000 * this.counterAttackSaves / this.counterAttackShotsAgainst) / 10;
|
|
9088
|
+
}
|
|
9053
9089
|
get centerForwardSaves() {
|
|
9054
9090
|
return (this.ppCenterForwardSaves || 0) + (this.shCenterForwardSaves || 0) + (this.evCenterForwardSaves || 0);
|
|
9055
9091
|
}
|
|
9092
|
+
get centerForwardShotsAgainst() {
|
|
9093
|
+
return this.centerForwardSaves + (this.centerForwardGoalsAgainst || 0);
|
|
9094
|
+
}
|
|
9095
|
+
get centerForwardSavesPercent() {
|
|
9096
|
+
if (!this.centerForwardSaves || !this.centerForwardShotsAgainst) {
|
|
9097
|
+
return 0;
|
|
9098
|
+
}
|
|
9099
|
+
return Math.round(1000 * this.centerForwardSaves / this.centerForwardShotsAgainst) / 10;
|
|
9100
|
+
}
|
|
9056
9101
|
get maneuverSaves() {
|
|
9057
9102
|
return (this.ppManeuverSaves || 0) + (this.shManeuverSaves || 0) + (this.evManeuverSaves || 0);
|
|
9058
9103
|
}
|
|
9104
|
+
get maneuverShotsAgainst() {
|
|
9105
|
+
return this.maneuverSaves + (this.maneuverGoalsAgainst || 0);
|
|
9106
|
+
}
|
|
9107
|
+
get maneuverSavesPercent() {
|
|
9108
|
+
if (!this.maneuverSaves || !this.maneuverShotsAgainst) {
|
|
9109
|
+
return 0;
|
|
9110
|
+
}
|
|
9111
|
+
return Math.round(1000 * this.maneuverSaves / this.maneuverShotsAgainst) / 10;
|
|
9112
|
+
}
|
|
9059
9113
|
get freeKickSaves() {
|
|
9060
9114
|
return (this.ppFreeKickSaves || 0) + (this.shFreeKickSaves || 0) + (this.evFreeKickSaves || 0);
|
|
9061
9115
|
}
|
|
9116
|
+
get freeKickShotsAgainst() {
|
|
9117
|
+
return this.freeKickSaves + (this.freeKickGoalsAgainst || 0);
|
|
9118
|
+
}
|
|
9119
|
+
get freeKickSavesPercent() {
|
|
9120
|
+
if (!this.freeKickSaves || !this.freeKickShotsAgainst) {
|
|
9121
|
+
return 0;
|
|
9122
|
+
}
|
|
9123
|
+
return Math.round(1000 * this.freeKickSaves / this.freeKickShotsAgainst) / 10;
|
|
9124
|
+
}
|
|
9062
9125
|
get cornerSaves() {
|
|
9063
9126
|
return (this.ppCornerSaves || 0) + (this.shCornerSaves || 0) + (this.evCornerSaves || 0);
|
|
9064
9127
|
}
|
|
9128
|
+
get cornerShotsAgainst() {
|
|
9129
|
+
return this.cornerSaves + (this.cornerGoalsAgainst || 0);
|
|
9130
|
+
}
|
|
9131
|
+
get cornerSavesPercent() {
|
|
9132
|
+
if (!this.cornerSaves || !this.cornerShotsAgainst) {
|
|
9133
|
+
return 0;
|
|
9134
|
+
}
|
|
9135
|
+
return Math.round(1000 * this.cornerSaves / this.cornerShotsAgainst) / 10;
|
|
9136
|
+
}
|
|
9065
9137
|
get totalShSaves() {
|
|
9066
9138
|
return (this.shCounterAttackSaves || 0) + (this.shManeuverSaves || 0) + (this.shCenterForwardSaves || 0) +
|
|
9067
9139
|
(this.shSaves || 0) + (this.shFreeKickSaves || 0) + (this.shCornerSaves || 0);
|