mirror of
https://github.com/iconify/iconify.git
synced 2025-01-05 23:10:40 +00:00
Remove unnecessary comments from utils
This commit is contained in:
parent
c28ad01412
commit
a77c89a545
@ -6,13 +6,6 @@ const unitsTest = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Calculate second dimension when only 1 dimension is set
|
* Calculate second dimension when only 1 dimension is set
|
||||||
*
|
|
||||||
* @param {string|number} size One dimension (such as width)
|
|
||||||
* @param {number} ratio Width/height ratio.
|
|
||||||
* If size is width, ratio = height/width
|
|
||||||
* If size is height, ratio = width/height
|
|
||||||
* @param {number} [precision] Floating number precision in result to minimize output. Default = 2
|
|
||||||
* @return {string|number} Another dimension
|
|
||||||
*/
|
*/
|
||||||
export function calculateSize(
|
export function calculateSize(
|
||||||
size: string | number,
|
size: string | number,
|
||||||
|
Loading…
Reference in New Issue
Block a user