@mtgame/core 0.1.138 → 0.1.140
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 +118 -12
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/waterpolo-game-statistic.js +51 -3
- package/esm2015/models/waterpolo-statistic.js +25 -11
- package/fesm2015/mtgame-core.js +74 -12
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/waterpolo-game-statistic.d.ts +12 -1
- package/models/waterpolo-statistic.d.ts +24 -10
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm2015/mtgame-core.js
CHANGED
|
@@ -5098,20 +5098,38 @@ WaterpoloStatistic = __decorate([
|
|
|
5098
5098
|
total_ev_goals: 'totalEvGoals',
|
|
5099
5099
|
goals: 'goals',
|
|
5100
5100
|
total_goals: 'totalGoals',
|
|
5101
|
+
position_attack_goals: 'positionAttackGoals',
|
|
5102
|
+
position_attack_shots_on_goal: 'positionAttackShotsOnGoal',
|
|
5103
|
+
position_attack_shots_miss: 'positionAttackShotsMiss',
|
|
5104
|
+
position_attack_shots: 'positionAttackShots',
|
|
5105
|
+
position_attack_goals_percent: 'positionAttackGoalsPercent',
|
|
5101
5106
|
total_counterattack_goals: 'totalCounterAttackGoals',
|
|
5107
|
+
counterattack_shot_on_goals: 'counterAttackShotOnGoals',
|
|
5108
|
+
counterattack_shot_misses: 'counterAttackShotMisses',
|
|
5109
|
+
counterattack_shots: 'counterAttackShots',
|
|
5110
|
+
counterattack_goals_percent: 'counterAttackGoalsPercent',
|
|
5102
5111
|
total_maneuver_goals: 'totalManeuverGoals',
|
|
5112
|
+
maneuver_shot_misses: 'maneuverShotMisses',
|
|
5113
|
+
maneuver_shot_on_goals: 'maneuverShotOnGoals',
|
|
5114
|
+
maneuver_shots: 'maneuverShots',
|
|
5115
|
+
maneuver_goals_percent: 'maneuverGoalsPercent',
|
|
5103
5116
|
total_center_forward_goals: 'totalCenterForwardGoals',
|
|
5117
|
+
center_forward_shot_on_goals: 'centerForwardShotOnGoals',
|
|
5118
|
+
center_forward_shot_misses: 'centerForwardShotMisses',
|
|
5119
|
+
center_forward_shots: 'centerForwardShots',
|
|
5120
|
+
center_forward_goals_percent: 'centerForwardGoalsPercent',
|
|
5121
|
+
total_free_kick_goals: 'totalFreeKickGoals',
|
|
5122
|
+
free_kick_shot_misses: 'freeKickShotMisses',
|
|
5123
|
+
free_kick_on_goals: 'freeKickOnGoals',
|
|
5124
|
+
total_free_kicks: 'totalFreeKicks',
|
|
5125
|
+
free_kick_goals_percent: 'freeKickGoalsPercent',
|
|
5126
|
+
total_corner_goals: 'totalCornerGoals',
|
|
5127
|
+
total_corners: 'totalCorners',
|
|
5104
5128
|
total_in_game_goals: 'totalInGameGoals',
|
|
5105
5129
|
in_game_shot_misses: 'inGameShotMisses',
|
|
5106
|
-
counterattack_shot_misses: 'counterAttackShotMisses',
|
|
5107
|
-
center_forward_shot_misses: 'centerForwardShotMisses',
|
|
5108
5130
|
total_pp_shot_misses: 'totalPpShotMisses',
|
|
5109
|
-
free_kick_shot_misses: 'freeKickShotMisses',
|
|
5110
5131
|
shot_misses: 'shotMisses',
|
|
5111
5132
|
total_pp_shots_on_goal: 'totalPpShotsOnGoal',
|
|
5112
|
-
counterattack_shot_on_goals: 'counterAttackShotOnGoals',
|
|
5113
|
-
center_forward_shot_on_goals: 'centerForwardShotOnGoals',
|
|
5114
|
-
free_kick_on_goals: 'freeKickOnGoals',
|
|
5115
5133
|
in_game_shots_on_goals: 'inGameShotsOnGoals',
|
|
5116
5134
|
shots_on_goal: 'shotsOnGoal',
|
|
5117
5135
|
shots_blocked: 'shotsBlocked',
|
|
@@ -5122,10 +5140,6 @@ WaterpoloStatistic = __decorate([
|
|
|
5122
5140
|
total_goals_percent: 'totalGoalsPercent',
|
|
5123
5141
|
face_offs: 'faceOffs',
|
|
5124
5142
|
face_off_percent: 'faceOffPercent',
|
|
5125
|
-
total_free_kick_goals: 'totalFreeKickGoals',
|
|
5126
|
-
total_free_kicks: 'totalFreeKicks',
|
|
5127
|
-
total_corner_goals: 'totalCornerGoals',
|
|
5128
|
-
total_corners: 'totalCorners',
|
|
5129
5143
|
total_fouls: 'totalFouls',
|
|
5130
5144
|
total_penalties: 'totalPenalties',
|
|
5131
5145
|
shootout_shots: 'shootoutShots',
|
|
@@ -8784,6 +8798,15 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
|
|
|
8784
8798
|
get counterAttackShotOnGoals() {
|
|
8785
8799
|
return (this.ppCounterAttackOnGoals || 0) + (this.shCounterAttackOnGoals || 0) + (this.evCounterAttackOnGoals || 0);
|
|
8786
8800
|
}
|
|
8801
|
+
get counterAttackShots() {
|
|
8802
|
+
return this.counterAttackShotMisses + this.counterAttackShotOnGoals;
|
|
8803
|
+
}
|
|
8804
|
+
get counterAttackGoalsPercent() {
|
|
8805
|
+
if (!this.totalCounterAttackGoals || !this.counterAttackShots) {
|
|
8806
|
+
return 0;
|
|
8807
|
+
}
|
|
8808
|
+
return Math.round(1000 * this.totalCounterAttackGoals / this.counterAttackShots) / 10;
|
|
8809
|
+
}
|
|
8787
8810
|
get totalManeuverGoals() {
|
|
8788
8811
|
return (this.ppManeuverGoals || 0) + (this.shManeuverGoals || 0) + (this.evManeuverGoals || 0);
|
|
8789
8812
|
}
|
|
@@ -8802,6 +8825,15 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
|
|
|
8802
8825
|
get maneuverShotOnGoals() {
|
|
8803
8826
|
return (this.ppManeuverOnGoals || 0) + (this.shManeuverOnGoals || 0) + (this.evManeuverOnGoals || 0);
|
|
8804
8827
|
}
|
|
8828
|
+
get maneuverShots() {
|
|
8829
|
+
return this.maneuverShotMisses + this.maneuverShotOnGoals;
|
|
8830
|
+
}
|
|
8831
|
+
get maneuverGoalsPercent() {
|
|
8832
|
+
if (!this.totalManeuverGoals || !this.maneuverShots) {
|
|
8833
|
+
return 0;
|
|
8834
|
+
}
|
|
8835
|
+
return Math.round(1000 * this.totalManeuverGoals / this.maneuverShots) / 10;
|
|
8836
|
+
}
|
|
8805
8837
|
get totalCenterForwardGoals() {
|
|
8806
8838
|
return (this.ppCenterForwardGoals || 0) + (this.shCenterForwardGoals || 0) + (this.evCenterForwardGoals || 0);
|
|
8807
8839
|
}
|
|
@@ -8820,6 +8852,15 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
|
|
|
8820
8852
|
get centerForwardShotOnGoals() {
|
|
8821
8853
|
return (this.ppCenterForwardOnGoals || 0) + (this.shCenterForwardOnGoals || 0) + (this.evCenterForwardOnGoals || 0);
|
|
8822
8854
|
}
|
|
8855
|
+
get centerForwardShots() {
|
|
8856
|
+
return this.centerForwardShotMisses + this.centerForwardShotOnGoals;
|
|
8857
|
+
}
|
|
8858
|
+
get centerForwardGoalsPercent() {
|
|
8859
|
+
if (!this.totalCenterForwardGoals || !this.centerForwardShots) {
|
|
8860
|
+
return 0;
|
|
8861
|
+
}
|
|
8862
|
+
return Math.round(1000 * this.totalCenterForwardGoals / this.centerForwardShots) / 10;
|
|
8863
|
+
}
|
|
8823
8864
|
get ppShots() {
|
|
8824
8865
|
return (this.ppShotMisses || 0) + (this.ppShotsOnGoal || 0) + (this.ppShotsBlocked || 0) +
|
|
8825
8866
|
(this.ppFreeKickMisses || 0) + (this.ppFreeKickOnGoals || 0) +
|
|
@@ -8911,6 +8952,12 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
|
|
|
8911
8952
|
return (this.freeKickSelfs || 0) + (this.freeKickPasses || 0) +
|
|
8912
8953
|
this.freeKickShotMisses + this.freeKickOnGoals + this.totalFreeKickGoals;
|
|
8913
8954
|
}
|
|
8955
|
+
get freeKickGoalsPercent() {
|
|
8956
|
+
if (!this.totalFreeKickGoals || !this.totalFreeKicks) {
|
|
8957
|
+
return 0;
|
|
8958
|
+
}
|
|
8959
|
+
return Math.round(1000 * this.totalFreeKickGoals / this.totalFreeKicks) / 10;
|
|
8960
|
+
}
|
|
8914
8961
|
get totalCornerGoals() {
|
|
8915
8962
|
return (this.ppCornerGoals || 0) + (this.shCornerGoals || 0) + (this.evCornerGoals || 0);
|
|
8916
8963
|
}
|
|
@@ -8927,11 +8974,26 @@ let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
|
|
|
8927
8974
|
get totalPenalties() {
|
|
8928
8975
|
return (this.minorPenalties || 0) + (this.majorPenalties || 0) + (this.matchPenalties || 0);
|
|
8929
8976
|
}
|
|
8930
|
-
get
|
|
8977
|
+
get positionAttackGoals() {
|
|
8931
8978
|
return (this.shGoals || 0) + (this.evGoals || 0) + (this.ppGoals || 0);
|
|
8932
8979
|
}
|
|
8980
|
+
get positionAttackShotsOnGoal() {
|
|
8981
|
+
return (this.ppShotsOnGoal || 0) + (this.evShotsOnGoal || 0) + (this.shShotsOnGoal || 0);
|
|
8982
|
+
}
|
|
8983
|
+
get positionAttackShotsMiss() {
|
|
8984
|
+
return (this.ppShotMisses || 0) + (this.evShotMisses || 0) + (this.shShotMisses || 0);
|
|
8985
|
+
}
|
|
8986
|
+
get positionAttackShots() {
|
|
8987
|
+
return this.positionAttackShotsOnGoal + this.positionAttackShotsMiss;
|
|
8988
|
+
}
|
|
8989
|
+
get positionAttackGoalsPercent() {
|
|
8990
|
+
if (!this.positionAttackGoals || !this.positionAttackShots) {
|
|
8991
|
+
return 0;
|
|
8992
|
+
}
|
|
8993
|
+
return Math.round(1000 * this.positionAttackGoals / this.positionAttackShots) / 10;
|
|
8994
|
+
}
|
|
8933
8995
|
get totalInGameGoals() {
|
|
8934
|
-
return this.totalCenterForwardGoals + this.totalManeuverGoals + this.totalCounterAttackGoals + this.
|
|
8996
|
+
return this.totalCenterForwardGoals + this.totalManeuverGoals + this.totalCounterAttackGoals + this.positionAttackGoals;
|
|
8935
8997
|
}
|
|
8936
8998
|
get ppGoalsPercent() {
|
|
8937
8999
|
if (!this.totalPpGoals || !this.ppShots) {
|