-
bestfit(renditions) → {function}
-
Finds image rendition that best fits a given container preferring images that are too large over images that are too small.
Note: all renditions are assumed to have the same aspect ratio
Parameters:
Name Type Description renditions
Array.<Object> available image renditions each having a width and height property
Returns:
when called with available width and height it returns the best fitting rendition
- Type
- function
Maintenance
Commit Frequency
Further analysis of the maintenance status of bestfit based on released npm versions cadence, the repository activity, and other data points determined that its maintenance is Inactive.
An important project maintenance signal to consider for bestfit is that it hasn't seen any new versions released to npm in the past 12 months, and could be considered as a discontinued project, or that which receives low attention from its maintainers.
In the past month we didn't find any pull request activity or change in issues status has been detected for the GitHub repository.