calculateSize
external fun calculateSize(size: dynamic, ratio: Double, precision: Int = definedExternally): dynamic
Calculate the second dimension when only one dimension is set.
Return
the calculated size, in the same form as size.
Parameters
size
a number of pixels or a CSS size string such as "1em".
ratio
width/height ratio of the icon.
precision
number of decimal digits used when rounding up; defaults to 100, meaning two decimal digits.