# @dioramajs/text/lens

Exports of @dioramajs/text/lens.

## Functions and values

- [default](/docs/api/text-lens/default.md): A reading glass over the text: a thick biconvex lens in a thin metal ring follows the pointer, traced per pixel through both curved faces. The text under it comes up magnified in the middle, bends and splits into colors toward the rim; the glass reflects a studio, and on the page beside it lies its shadow with the light it focuses and the shadow of its handle. It leans into its motion and settles. The DOM text stays as it is around the lens.
- [grounds](/docs/api/text-lens/grounds.md): The page color under the element's text, and behind the element.
- [magnification](/docs/api/text-lens/magnification.md): The magnification at the lens's centre at `height` over the page.
- [optics](/docs/api/text-lens/optics.md): The lens for a radius on screen, a magnification and a thickness: the height over the page that gives `zoom` at the centre, and the glass sized so its rim looks `radius` px from there.
- [rows](/docs/api/text-lens/rows.md)
- [trace](/docs/api/text-lens/trace.md): Where a ray from a camera `distance` px above the page, aimed at page point `x0` from the lens axis, meets the page through the lens (2D, in the plane of the axis). NaN when the glass sends it elsewhere (the edge, or total internal reflection).

## Types

- [Optics](/docs/api/text-lens/types/optics.md): The glass: a biconvex lens of aperture `a` with both faces of sag `sag`, edge `edge` thick.
