# @dioramajs/text/tunnel

Exports of @dioramajs/text/tunnel.

## Functions and values

- [default](/docs/api/text-tunnel/default.md): The phrases of a pinned section as cards in real depth: the scroll flies the camera forward through them. Each phrase comes out of the fog, holds in focus where the DOM has it, then grows, blurs and passes the viewer, along the walls of a tunnel, straight on, or around a helix. At the end of the section the last phrase settles as DOM text.
- [FAR](/docs/api/text-tunnel/far.md): Phrases further behind the one in focus than this many steps are not drawn.
- [gap](/docs/api/text-tunnel/gap.md): Distance between two convex outlines on screen, px; negative when they overlap.
- [guides](/docs/api/text-tunnel/guides.md): The guide lines as segments: from and to (x, y in units of the tunnel's half size or the helix radius, phrase step along the axis) and the line's opacity. Tunnel: the edges and two lines down each wall, and a frame every half step; spiral: two strands of the helix; zoom: none.
- [onScreen](/docs/api/text-tunnel/on-screen.md): The corners of a placed phrase's ink on screen, box-centre px (y up), in order around it.
- [pace](/docs/api/text-tunnel/pace.md): How fast `travel` moves at `pin`, phrases per unit of pin.
- [place](/docs/api/text-tunnel/place.md): Phrase `i` with the camera at `t`: in focus (t = i) it lies flat where the DOM has it; further back it moves onto the floor or ceiling of the tunnel or the helix, leaning towards the axis, and fades into the fog; nearer it grows, blurs and fades out before it reaches the eye. Given the phrase in focus (`focus`, the one at round(t)), a phrase behind that would cross it on screen fades out while that one holds. Undefined when unseen.
- [travel](/docs/api/text-tunnel/travel.md): Where the camera is at `pin` (0..1), in phrases: 0 on the first, `count - 1` on the last. It slows down on each phrase, so each one holds still to be read, and speeds up between them.

## Types

- [Placed](/docs/api/text-tunnel/types/placed.md): A phrase in 3D: a flat card around `centre`, along `ax` (reading direction) and `ay` (up).
- [Rest](/docs/api/text-tunnel/types/rest.md): One phrase at rest: its ink's centre in box-centre px (y up) and half its size.
- [Scene](/docs/api/text-tunnel/types/scene.md): The scene: box size, phrase spacing and eye distance in px, and the look.
- [Style](/docs/api/text-tunnel/types/style.md)
- [Vec3](/docs/api/text-tunnel/types/vec3.md)
