@mtgame/core 0.2.41 → 0.2.43
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 +63 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/basketball-game-statistic.js +47 -1
- package/esm2015/models/playoff.js +2 -1
- package/fesm2015/mtgame-core.js +47 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/basketball-game-statistic.d.ts +21 -0
- package/models/playoff.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -2269,6 +2269,7 @@
|
|
|
2269
2269
|
is_official: 'isOfficial',
|
|
2270
2270
|
tournament_round_id: 'tournamentRoundId',
|
|
2271
2271
|
division_id: 'divisionId',
|
|
2272
|
+
winner_place: 'winnerPlace',
|
|
2272
2273
|
},
|
|
2273
2274
|
relation: {
|
|
2274
2275
|
settings: exports.PlayoffSettings
|
|
@@ -3708,7 +3709,21 @@
|
|
|
3708
3709
|
enumerable: false,
|
|
3709
3710
|
configurable: true
|
|
3710
3711
|
});
|
|
3712
|
+
Object.defineProperty(BasketballGameStatistic.prototype, "onePointPercent", {
|
|
3713
|
+
get: function () {
|
|
3714
|
+
if (!this.onePointsMade || !this.onePointAttempts) {
|
|
3715
|
+
return 0;
|
|
3716
|
+
}
|
|
3717
|
+
return Math.round(1000 * this.onePointsMade / this.onePointAttempts) / 10;
|
|
3718
|
+
},
|
|
3719
|
+
set: function (v) { },
|
|
3720
|
+
enumerable: false,
|
|
3721
|
+
configurable: true
|
|
3722
|
+
});
|
|
3711
3723
|
Object.defineProperty(BasketballGameStatistic.prototype, "onePointsPercent", {
|
|
3724
|
+
/**
|
|
3725
|
+
* @deprecated Use onePointPercent instead
|
|
3726
|
+
*/
|
|
3712
3727
|
get: function () {
|
|
3713
3728
|
if (!this.onePointsMade || !this.onePointAttempts) {
|
|
3714
3729
|
return 0;
|
|
@@ -3718,7 +3733,21 @@
|
|
|
3718
3733
|
enumerable: false,
|
|
3719
3734
|
configurable: true
|
|
3720
3735
|
});
|
|
3736
|
+
Object.defineProperty(BasketballGameStatistic.prototype, "twoPointPercent", {
|
|
3737
|
+
get: function () {
|
|
3738
|
+
if (!this.twoPointsMade || !this.twoPointAttempts) {
|
|
3739
|
+
return 0;
|
|
3740
|
+
}
|
|
3741
|
+
return Math.round(1000 * this.twoPointsMade / this.twoPointAttempts) / 10;
|
|
3742
|
+
},
|
|
3743
|
+
set: function (v) { },
|
|
3744
|
+
enumerable: false,
|
|
3745
|
+
configurable: true
|
|
3746
|
+
});
|
|
3721
3747
|
Object.defineProperty(BasketballGameStatistic.prototype, "twoPointsPercent", {
|
|
3748
|
+
/**
|
|
3749
|
+
* @deprecated Use twoPointPercent instead
|
|
3750
|
+
*/
|
|
3722
3751
|
get: function () {
|
|
3723
3752
|
if (!this.twoPointsMade || !this.twoPointAttempts) {
|
|
3724
3753
|
return 0;
|
|
@@ -3728,7 +3757,21 @@
|
|
|
3728
3757
|
enumerable: false,
|
|
3729
3758
|
configurable: true
|
|
3730
3759
|
});
|
|
3760
|
+
Object.defineProperty(BasketballGameStatistic.prototype, "threePointPercent", {
|
|
3761
|
+
get: function () {
|
|
3762
|
+
if (!this.threePointsMade || !this.threePointAttempts) {
|
|
3763
|
+
return 0;
|
|
3764
|
+
}
|
|
3765
|
+
return Math.round(1000 * this.threePointsMade / this.threePointAttempts) / 10;
|
|
3766
|
+
},
|
|
3767
|
+
set: function (v) { },
|
|
3768
|
+
enumerable: false,
|
|
3769
|
+
configurable: true
|
|
3770
|
+
});
|
|
3731
3771
|
Object.defineProperty(BasketballGameStatistic.prototype, "threePointsPercent", {
|
|
3772
|
+
/**
|
|
3773
|
+
* @deprecated Use threePointPercent instead
|
|
3774
|
+
*/
|
|
3732
3775
|
get: function () {
|
|
3733
3776
|
if (!this.threePointsMade || !this.threePointAttempts) {
|
|
3734
3777
|
return 0;
|
|
@@ -3738,7 +3781,21 @@
|
|
|
3738
3781
|
enumerable: false,
|
|
3739
3782
|
configurable: true
|
|
3740
3783
|
});
|
|
3784
|
+
Object.defineProperty(BasketballGameStatistic.prototype, "freeThrowPercent", {
|
|
3785
|
+
get: function () {
|
|
3786
|
+
if (!this.freeThrowsMade || !this.freeThrowAttempts) {
|
|
3787
|
+
return 0;
|
|
3788
|
+
}
|
|
3789
|
+
return Math.round(1000 * this.freeThrowsMade / this.freeThrowAttempts) / 10;
|
|
3790
|
+
},
|
|
3791
|
+
set: function (v) { },
|
|
3792
|
+
enumerable: false,
|
|
3793
|
+
configurable: true
|
|
3794
|
+
});
|
|
3741
3795
|
Object.defineProperty(BasketballGameStatistic.prototype, "freeThrowsPercent", {
|
|
3796
|
+
/**
|
|
3797
|
+
* @deprecated Use freeThrowPercent instead
|
|
3798
|
+
*/
|
|
3742
3799
|
get: function () {
|
|
3743
3800
|
if (!this.freeThrowsMade || !this.freeThrowAttempts) {
|
|
3744
3801
|
return 0;
|
|
@@ -3762,6 +3819,7 @@
|
|
|
3762
3819
|
}
|
|
3763
3820
|
return Math.round(1000 * this.fourPointsMade / this.fourPointAttempts) / 10;
|
|
3764
3821
|
},
|
|
3822
|
+
set: function (v) { },
|
|
3765
3823
|
enumerable: false,
|
|
3766
3824
|
configurable: true
|
|
3767
3825
|
});
|
|
@@ -3786,6 +3844,11 @@
|
|
|
3786
3844
|
three_point_attempts: 'threePointAttempts',
|
|
3787
3845
|
free_throw_attempts: 'freeThrowAttempts',
|
|
3788
3846
|
one_point_attempts: 'onePointAttempts',
|
|
3847
|
+
one_point_percent: 'onePointPercent',
|
|
3848
|
+
two_point_percent: 'twoPointPercent',
|
|
3849
|
+
three_point_percent: 'threePointPercent',
|
|
3850
|
+
free_throw_percent: 'freeThrowPercent',
|
|
3851
|
+
four_point_percent: 'fourPointPercent',
|
|
3789
3852
|
assists: 'assists',
|
|
3790
3853
|
blocks: 'blocks',
|
|
3791
3854
|
rebounds: 'rebounds',
|