# @dioramajs/text/pins

Exports of @dioramajs/text/pins.

## Functions and values

- [default](/docs/api/text-pins/default.md): The element's box becomes a pin-art toy: a dense field of lit metal pins seen through the page camera, the ones inside the glyphs pushed toward the viewer so the text stands out in relief. On view the letters rise out of the flat field in a wave; the pointer presses the pins in (or pushes them out) in a soft circle and they spring back.
- [field](/docs/api/text-pins/field.md): Pins on a grid over a `width` by `height` box, a hex grid when `hex`. Each stands out by a smooth step of the distance to the glyph edge, so the letters rise as plateaus whose edges ramp over a pitch or so. With a `halo` only the pins that close to the glyphs are kept, fewer and fewer toward its edge, so the field takes the shape of the word. The pitch widens until the pins fit `max`. The wave reaches them left to right and a little top down.
- [MAX_PINS](/docs/api/text-pins/max-pins.md): Most pins at the high tier; past it the pitch widens.
- [pinShape](/docs/api/text-pins/pin-shape.md): One pin of `style` in pitches, its top at z 0: a thin shaft under a domed metal head, a square bar with a bevelled top, or a round button. `pinPart` says which vertices ride with the top and which belong to the head.
- [span](/docs/api/text-pins/span.md): Seconds until the last pin has started to rise.

## Types

- [Field](/docs/api/text-pins/types/field.md): The pins over a box and how far each stands out at rest.
- [FieldOptions](/docs/api/text-pins/types/field-options.md)
