tods-competition-factory 2.0.36 → 2.0.37
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/dist/index.mjs +5 -5
- package/dist/tods-competition-factory.development.cjs.js +10 -5
- package/dist/tods-competition-factory.development.cjs.js.map +1 -1
- package/dist/tods-competition-factory.production.cjs.min.js +1 -1
- package/dist/tods-competition-factory.production.cjs.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
function factoryVersion() {
|
|
6
|
-
return '2.0.
|
|
6
|
+
return '2.0.37';
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
function isFunction(obj) {
|
|
@@ -20224,6 +20224,7 @@ function checkInitializeParticipant(participantResults, participantId) {
|
|
|
20224
20224
|
pointsLost: 0,
|
|
20225
20225
|
pointsWon: 0,
|
|
20226
20226
|
pressureScores: [],
|
|
20227
|
+
ratingVariation: [],
|
|
20227
20228
|
retirements: 0,
|
|
20228
20229
|
setsLost: 0,
|
|
20229
20230
|
setsWon: 0,
|
|
@@ -20276,7 +20277,10 @@ function processMatchUp({ winningParticipantId, manualGamesOverride, losingParti
|
|
|
20276
20277
|
const side1Value = gamesWonSide1 * side2ConvertedRating;
|
|
20277
20278
|
const side2Value = gamesWonSide2 * side1ConvertedRating;
|
|
20278
20279
|
participantResults[side1?.participantId].pressureScores.push(fixed2(side1Value / (side1Value + side2Value)));
|
|
20279
|
-
participantResults[side2?.participantId].pressureScores.push(fixed2(
|
|
20280
|
+
participantResults[side2?.participantId].pressureScores.push(fixed2(side2Value / (side1Value + side2Value)));
|
|
20281
|
+
const highRange = Math.max(...ratingsParameters[ELO].range);
|
|
20282
|
+
participantResults[side1?.participantId].ratingVariation.push(fixed2((side1ConvertedRating - side2ConvertedRating) / highRange));
|
|
20283
|
+
participantResults[side2?.participantId].ratingVariation.push(fixed2((side2ConvertedRating - side1ConvertedRating) / highRange));
|
|
20280
20284
|
}
|
|
20281
20285
|
if (!isTieMatchUp) {
|
|
20282
20286
|
processOutcome$1({
|
|
@@ -57710,6 +57714,7 @@ const POLICY_SCORING_DEFAULT = {
|
|
|
57710
57714
|
},
|
|
57711
57715
|
};
|
|
57712
57716
|
|
|
57717
|
+
const personalCircumstance = 'Personal circumstance';
|
|
57713
57718
|
const POLICY_SCORING_USTA = {
|
|
57714
57719
|
[POLICY_TYPE_SCORING]: {
|
|
57715
57720
|
requireAllPositionsAssigned: false,
|
|
@@ -57902,7 +57907,7 @@ const POLICY_SCORING_USTA = {
|
|
|
57902
57907
|
},
|
|
57903
57908
|
{
|
|
57904
57909
|
matchUpStatusCodeDisplay: 'Wo [pc]',
|
|
57905
|
-
label:
|
|
57910
|
+
label: personalCircumstance,
|
|
57906
57911
|
matchUpStatusCode: 'W3',
|
|
57907
57912
|
},
|
|
57908
57913
|
{
|
|
@@ -57934,7 +57939,7 @@ const POLICY_SCORING_USTA = {
|
|
|
57934
57939
|
},
|
|
57935
57940
|
{
|
|
57936
57941
|
matchUpStatusCodeDisplay: 'Ret [pc]',
|
|
57937
|
-
label:
|
|
57942
|
+
label: personalCircumstance,
|
|
57938
57943
|
matchUpStatusCode: 'RC',
|
|
57939
57944
|
},
|
|
57940
57945
|
{
|
|
@@ -57964,7 +57969,7 @@ const POLICY_SCORING_USTA = {
|
|
|
57964
57969
|
},
|
|
57965
57970
|
{
|
|
57966
57971
|
matchUpStatusCodeDisplay: 'Wd [pc]',
|
|
57967
|
-
label:
|
|
57972
|
+
label: personalCircumstance,
|
|
57968
57973
|
matchUpStatusCode: 'WD.PC',
|
|
57969
57974
|
},
|
|
57970
57975
|
{
|