floorOf function
Where the row at `share` of a picture's height (from its top) lands in the box, as box UV with y up, under the element's object-fit and object-position.
import { floorOf } from '@dioramajs/media/reflection'. Clamped to the box.
function floorOf(
options: FitOptions,
natural: readonly [number, number],
box: readonly [number, number],
share: number,
): numberParameters
| Name | Type | Description |
|---|---|---|
options | FitOptions | |
natural | readonly [number, number] | |
box | readonly [number, number] | |
share | number |
Defined in packages/media/src/reflection.ts.