@mtgame/core 0.2.42 → 0.2.44
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 +85 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/basketball-game-statistic.js +60 -1
- package/esm2015/models/basketball-statistic.js +3 -1
- package/fesm2015/mtgame-core.js +61 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/basketball-game-statistic.d.ts +25 -0
- package/models/basketball-statistic.d.ts +2 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -3644,6 +3644,8 @@
|
|
|
3644
3644
|
dunks_made: 'dunksMade',
|
|
3645
3645
|
shootouts_won: 'shootoutsWon',
|
|
3646
3646
|
shootouts_lost: 'shootoutsLost',
|
|
3647
|
+
shootouts_total: 'shootoutsTotal',
|
|
3648
|
+
shootout_won_percent: 'shootoutWonPercent',
|
|
3647
3649
|
game_time: 'gameTime',
|
|
3648
3650
|
newbie: 'newbie',
|
|
3649
3651
|
rank: 'rank',
|
|
@@ -3709,7 +3711,21 @@
|
|
|
3709
3711
|
enumerable: false,
|
|
3710
3712
|
configurable: true
|
|
3711
3713
|
});
|
|
3714
|
+
Object.defineProperty(BasketballGameStatistic.prototype, "onePointPercent", {
|
|
3715
|
+
get: function () {
|
|
3716
|
+
if (!this.onePointsMade || !this.onePointAttempts) {
|
|
3717
|
+
return 0;
|
|
3718
|
+
}
|
|
3719
|
+
return Math.round(1000 * this.onePointsMade / this.onePointAttempts) / 10;
|
|
3720
|
+
},
|
|
3721
|
+
set: function (v) { },
|
|
3722
|
+
enumerable: false,
|
|
3723
|
+
configurable: true
|
|
3724
|
+
});
|
|
3712
3725
|
Object.defineProperty(BasketballGameStatistic.prototype, "onePointsPercent", {
|
|
3726
|
+
/**
|
|
3727
|
+
* @deprecated Use onePointPercent instead
|
|
3728
|
+
*/
|
|
3713
3729
|
get: function () {
|
|
3714
3730
|
if (!this.onePointsMade || !this.onePointAttempts) {
|
|
3715
3731
|
return 0;
|
|
@@ -3719,7 +3735,21 @@
|
|
|
3719
3735
|
enumerable: false,
|
|
3720
3736
|
configurable: true
|
|
3721
3737
|
});
|
|
3738
|
+
Object.defineProperty(BasketballGameStatistic.prototype, "twoPointPercent", {
|
|
3739
|
+
get: function () {
|
|
3740
|
+
if (!this.twoPointsMade || !this.twoPointAttempts) {
|
|
3741
|
+
return 0;
|
|
3742
|
+
}
|
|
3743
|
+
return Math.round(1000 * this.twoPointsMade / this.twoPointAttempts) / 10;
|
|
3744
|
+
},
|
|
3745
|
+
set: function (v) { },
|
|
3746
|
+
enumerable: false,
|
|
3747
|
+
configurable: true
|
|
3748
|
+
});
|
|
3722
3749
|
Object.defineProperty(BasketballGameStatistic.prototype, "twoPointsPercent", {
|
|
3750
|
+
/**
|
|
3751
|
+
* @deprecated Use twoPointPercent instead
|
|
3752
|
+
*/
|
|
3723
3753
|
get: function () {
|
|
3724
3754
|
if (!this.twoPointsMade || !this.twoPointAttempts) {
|
|
3725
3755
|
return 0;
|
|
@@ -3729,7 +3759,21 @@
|
|
|
3729
3759
|
enumerable: false,
|
|
3730
3760
|
configurable: true
|
|
3731
3761
|
});
|
|
3762
|
+
Object.defineProperty(BasketballGameStatistic.prototype, "threePointPercent", {
|
|
3763
|
+
get: function () {
|
|
3764
|
+
if (!this.threePointsMade || !this.threePointAttempts) {
|
|
3765
|
+
return 0;
|
|
3766
|
+
}
|
|
3767
|
+
return Math.round(1000 * this.threePointsMade / this.threePointAttempts) / 10;
|
|
3768
|
+
},
|
|
3769
|
+
set: function (v) { },
|
|
3770
|
+
enumerable: false,
|
|
3771
|
+
configurable: true
|
|
3772
|
+
});
|
|
3732
3773
|
Object.defineProperty(BasketballGameStatistic.prototype, "threePointsPercent", {
|
|
3774
|
+
/**
|
|
3775
|
+
* @deprecated Use threePointPercent instead
|
|
3776
|
+
*/
|
|
3733
3777
|
get: function () {
|
|
3734
3778
|
if (!this.threePointsMade || !this.threePointAttempts) {
|
|
3735
3779
|
return 0;
|
|
@@ -3739,7 +3783,21 @@
|
|
|
3739
3783
|
enumerable: false,
|
|
3740
3784
|
configurable: true
|
|
3741
3785
|
});
|
|
3786
|
+
Object.defineProperty(BasketballGameStatistic.prototype, "freeThrowPercent", {
|
|
3787
|
+
get: function () {
|
|
3788
|
+
if (!this.freeThrowsMade || !this.freeThrowAttempts) {
|
|
3789
|
+
return 0;
|
|
3790
|
+
}
|
|
3791
|
+
return Math.round(1000 * this.freeThrowsMade / this.freeThrowAttempts) / 10;
|
|
3792
|
+
},
|
|
3793
|
+
set: function (v) { },
|
|
3794
|
+
enumerable: false,
|
|
3795
|
+
configurable: true
|
|
3796
|
+
});
|
|
3742
3797
|
Object.defineProperty(BasketballGameStatistic.prototype, "freeThrowsPercent", {
|
|
3798
|
+
/**
|
|
3799
|
+
* @deprecated Use freeThrowPercent instead
|
|
3800
|
+
*/
|
|
3743
3801
|
get: function () {
|
|
3744
3802
|
if (!this.freeThrowsMade || !this.freeThrowAttempts) {
|
|
3745
3803
|
return 0;
|
|
@@ -3763,6 +3821,26 @@
|
|
|
3763
3821
|
}
|
|
3764
3822
|
return Math.round(1000 * this.fourPointsMade / this.fourPointAttempts) / 10;
|
|
3765
3823
|
},
|
|
3824
|
+
set: function (v) { },
|
|
3825
|
+
enumerable: false,
|
|
3826
|
+
configurable: true
|
|
3827
|
+
});
|
|
3828
|
+
Object.defineProperty(BasketballGameStatistic.prototype, "shootoutsTotal", {
|
|
3829
|
+
get: function () {
|
|
3830
|
+
return (this.shootoutsLost || 0) + (this.shootoutsWon || 0);
|
|
3831
|
+
},
|
|
3832
|
+
set: function (v) { },
|
|
3833
|
+
enumerable: false,
|
|
3834
|
+
configurable: true
|
|
3835
|
+
});
|
|
3836
|
+
Object.defineProperty(BasketballGameStatistic.prototype, "shootoutWonPercent", {
|
|
3837
|
+
get: function () {
|
|
3838
|
+
if (!this.shootoutsTotal || !this.shootoutsWon) {
|
|
3839
|
+
return 0;
|
|
3840
|
+
}
|
|
3841
|
+
return Math.round(1000 * this.shootoutsWon / this.shootoutsTotal) / 10;
|
|
3842
|
+
},
|
|
3843
|
+
set: function (v) { },
|
|
3766
3844
|
enumerable: false,
|
|
3767
3845
|
configurable: true
|
|
3768
3846
|
});
|
|
@@ -3787,6 +3865,11 @@
|
|
|
3787
3865
|
three_point_attempts: 'threePointAttempts',
|
|
3788
3866
|
free_throw_attempts: 'freeThrowAttempts',
|
|
3789
3867
|
one_point_attempts: 'onePointAttempts',
|
|
3868
|
+
one_point_percent: 'onePointPercent',
|
|
3869
|
+
two_point_percent: 'twoPointPercent',
|
|
3870
|
+
three_point_percent: 'threePointPercent',
|
|
3871
|
+
free_throw_percent: 'freeThrowPercent',
|
|
3872
|
+
four_point_percent: 'fourPointPercent',
|
|
3790
3873
|
assists: 'assists',
|
|
3791
3874
|
blocks: 'blocks',
|
|
3792
3875
|
rebounds: 'rebounds',
|
|
@@ -3807,6 +3890,8 @@
|
|
|
3807
3890
|
dunks_made: 'dunksMade',
|
|
3808
3891
|
shootouts_won: 'shootoutsWon',
|
|
3809
3892
|
shootouts_lost: 'shootoutsLost',
|
|
3893
|
+
shootouts_total: 'shootoutsTotal',
|
|
3894
|
+
shootout_won_percent: 'shootoutWonPercent',
|
|
3810
3895
|
updated_at: 'updatedAt',
|
|
3811
3896
|
},
|
|
3812
3897
|
relation: {
|