function snapImageWidth
snapImageWidth(width: number): ImageWidth

Returns the narrowest of IMAGE_WIDTHS that covers width pixels, or the widest when none does.

Parameters

width: number

Return Type

Usage

import { snapImageWidth } from "shared/image.ts";