Skip to content

Commit ef47181

Browse files
opheliagoldsteinqwerty541
authored andcommitted
chore: make stats card create text node function jsdoc shorter (anuraghazra#4429)
Co-authored-by: Alexandr <[email protected]>
1 parent f75370d commit ef47181

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/cards/stats.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ const RANK_ONLY_CARD_DEFAULT_WIDTH = 290;
2323
/**
2424
* Create a stats card text item.
2525
*
26-
* @param {object} createTextNodeParams Object that contains the createTextNode parameters.
27-
* @param {string} createTextNodeParams.icon The icon to display.
28-
* @param {string} createTextNodeParams.label The label to display.
29-
* @param {number} createTextNodeParams.value The value to display.
30-
* @param {string} createTextNodeParams.id The id of the stat.
31-
* @param {string=} createTextNodeParams.unitSymbol The unit symbol of the stat.
32-
* @param {number} createTextNodeParams.index The index of the stat.
33-
* @param {boolean} createTextNodeParams.showIcons Whether to show icons.
34-
* @param {number} createTextNodeParams.shiftValuePos Number of pixels the value has to be shifted to the right.
35-
* @param {boolean} createTextNodeParams.bold Whether to bold the label.
36-
* @param {string} createTextNodeParams.number_format The format of numbers on card.
26+
* @param {object} params Object that contains the createTextNode parameters.
27+
* @param {string} params.icon The icon to display.
28+
* @param {string} params.label The label to display.
29+
* @param {number} params.value The value to display.
30+
* @param {string} params.id The id of the stat.
31+
* @param {string=} params.unitSymbol The unit symbol of the stat.
32+
* @param {number} params.index The index of the stat.
33+
* @param {boolean} params.showIcons Whether to show icons.
34+
* @param {number} params.shiftValuePos Number of pixels the value has to be shifted to the right.
35+
* @param {boolean} params.bold Whether to bold the label.
36+
* @param {string} params.number_format The format of numbers on card.
3737
* @returns {string} The stats card text item SVG object.
3838
*/
3939
const createTextNode = ({

0 commit comments

Comments
 (0)