<static> getAspectRatio(object) → {number}
Get the Visual viewport aspect ratio (or the aspect ratio of an object or element)
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
object | DOMElement | Object | <optional> | (visualViewport) | The object to determine the aspect ratio for. Must have public |
Returns
number -
The aspect ratio.
- Source code: utils/DOM.js (Line 100)
Please login to continue.