@dioramajs/media/polaroids
Exports of @dioramajs/media/polaroids.
On this page
import { default, layout } from '@dioramajs/media/polaroids'Functions
layout | Where the prints lie on a `width` x `height` table, the same for a seed on every load. `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. |
Constants
default | The images of a container as prints scattered on a table, each at a seeded angle: drag one to move it to the top, click one to bring it forward, click the top one to hold it up large (or follow its link). Fires `dio:index` when a print comes on top and `dio:open` when one is held up or put back. |
Interfaces
Spot | Where a print lies: its centre px from the box centre (y up), its turn in radians. |
Types
PolaroidsStyle | How the prints lie on the table. |