Skip to content

Commit 10526a0

Browse files
chore: make stats card create text node function jsdoc shorter (#4429)
Co-authored-by: Alexandr <[email protected]>
1 parent 5306118 commit 10526a0

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
@@ -22,17 +22,17 @@ const RANK_ONLY_CARD_DEFAULT_WIDTH = 290;
2222
/**
2323
* Create a stats card text item.
2424
*
25-
* @param {object} createTextNodeParams Object that contains the createTextNode parameters.
26-
* @param {string} createTextNodeParams.icon The icon to display.
27-
* @param {string} createTextNodeParams.label The label to display.
28-
* @param {number} createTextNodeParams.value The value to display.
29-
* @param {string} createTextNodeParams.id The id of the stat.
30-
* @param {string=} createTextNodeParams.unitSymbol The unit symbol of the stat.
31-
* @param {number} createTextNodeParams.index The index of the stat.
32-
* @param {boolean} createTextNodeParams.showIcons Whether to show icons.
33-
* @param {number} createTextNodeParams.shiftValuePos Number of pixels the value has to be shifted to the right.
34-
* @param {boolean} createTextNodeParams.bold Whether to bold the label.
35-
* @param {string} createTextNodeParams.number_format The format of numbers on card.
25+
* @param {object} params Object that contains the createTextNode parameters.
26+
* @param {string} params.icon The icon to display.
27+
* @param {string} params.label The label to display.
28+
* @param {number} params.value The value to display.
29+
* @param {string} params.id The id of the stat.
30+
* @param {string=} params.unitSymbol The unit symbol of the stat.
31+
* @param {number} params.index The index of the stat.
32+
* @param {boolean} params.showIcons Whether to show icons.
33+
* @param {number} params.shiftValuePos Number of pixels the value has to be shifted to the right.
34+
* @param {boolean} params.bold Whether to bold the label.
35+
* @param {string} params.number_format The format of numbers on card.
3636
* @returns {string} The stats card text item SVG object.
3737
*/
3838
const createTextNode = ({

0 commit comments

Comments
 (0)