Function: coverRect()
ts
function coverRect(
cell,
layout,
options
): Rect;Where to draw an image (in layout units) so it covers a cell's box, like CSS object-fit: cover, with its focal point as near as it can get to the middle of what shows of the cell. A cut tile, a triangle or a tall thin tile then shows a photo's subject rather than whatever was in the middle of the photo. Clip the image to the cell as usual.
Parameters
| Parameter | Type |
|---|---|
cell | Cell |
layout | Pick<Layout, "cornerRadius" | "view"> |
options | CoverOptions |