From cd40532db75f53bbe79aaaa0fc38d623225e0f31 Mon Sep 17 00:00:00 2001 From: Ophelia Goldstein <159258143+opheliagoldstein@users.noreply.github.com> Date: Wed, 17 Sep 2025 22:53:48 +0300 Subject: [PATCH] chore: make stats card create text node function jsdoc shorter (#4429) Co-authored-by: Alexandr --- backend/src/cards/stats.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/backend/src/cards/stats.js b/backend/src/cards/stats.js index 468ead9f..d9959ddc 100644 --- a/backend/src/cards/stats.js +++ b/backend/src/cards/stats.js @@ -23,19 +23,19 @@ const RANK_ONLY_CARD_DEFAULT_WIDTH = 290; /** * Create a stats card text item. * - * @param {object} createTextNodeParams Object that contains the createTextNode parameters. - * @param {string} createTextNodeParams.icon The icon to display. - * @param {string} createTextNodeParams.label The label to display. - * @param {number} createTextNodeParams.value The value to display. - * @param {string} createTextNodeParams.id The id of the stat. - * @param {string=} createTextNodeParams.unitSymbol The unit symbol of the stat. - * @param {number} createTextNodeParams.index The index of the stat. - * @param {boolean} createTextNodeParams.showIcons Whether to show icons. - * @param {number} createTextNodeParams.shiftValuePos Number of pixels the value has to be shifted to the right. - * @param {boolean} createTextNodeParams.bold Whether to bold the label. - * @param {string} createTextNodeParams.number_format The format of numbers on card. - * @param {string} createTextNodeParams.link Url to link to. - * @param {number} createTextNodeParams.labelXOffset horizontal offset for label. + * @param {object} params Object that contains the createTextNode parameters. + * @param {string} params.icon The icon to display. + * @param {string} params.label The label to display. + * @param {number} params.value The value to display. + * @param {string} params.id The id of the stat. + * @param {string=} params.unitSymbol The unit symbol of the stat. + * @param {number} params.index The index of the stat. + * @param {boolean} params.showIcons Whether to show icons. + * @param {number} params.shiftValuePos Number of pixels the value has to be shifted to the right. + * @param {boolean} params.bold Whether to bold the label. + * @param {string} params.number_format The format of numbers on card. + * @param {string} params.link Url to link to. + * @param {number} params.labelXOffset horizontal offset for label. * @returns {string} The stats card text item SVG object. */ const createTextNode = ({