docs: Update all files JSDoc.

This commit is contained in:
chiayin
2024-03-29 15:49:05 +08:00
parent 4ba71d1193
commit e391c9a237
55 changed files with 260 additions and 219 deletions

View File

@@ -153,8 +153,8 @@ export function getXIndex(data, xValue) {
return closestIndex;
};
/**
*
* @param {number} seconds
* 有 dhms 表達的時間單位
* @param {number} seconds 總秒數
* @returns {string}
*/
export function formatTime(seconds) {
@@ -180,8 +180,8 @@ export function formatTime(seconds) {
} else return null;
}
/**
*
* @param {array} times
* 只顯示最大的兩個單位
* @param {array} times 時間
* @returns {array}
*/
export function formatMaxTwo(times) {