layout function
Where the prints lie on a `width` x `height` table, the same for a seed on every load.
import { layout } from '@dioramajs/media/polaroids'sizes are the prints, at the centres of their images in the page (for grid). rotate in degrees, spread 0..1 how far they stray from their places.
function layout(
style: PolaroidsStyle,
sizes: readonly ({ … })[],
at: readonly ({ … })[],
width: number,
height: number,
seed: number,
rotate: number,
spread: number,
): Spot[]Parameters
| Name | Type | Description |
|---|---|---|
style | PolaroidsStyle | |
sizes | readonly ({ … })[] | |
at | readonly ({ … })[] | |
width | number | |
height | number | |
seed | number | |
rotate | number | |
spread | number |
Defined in packages/media/src/polaroids.ts.