# wrap

function in `@dioramajs/text/orbit`

```ts
import { wrap } from '@dioramajs/text/orbit'
```

Lays the letters of `atlas` round a form of radius `size` px: each line on a band (cylinder, ring)
or a row of a globe (sphere), its first copy centred in front. With `repeat` a line is copied
to fill its circle, its letters spread a little so the copies close up; a globe also fills its
surface with rows of the lines from pole to pole. The form grows when a line would not fit.

```ts
function wrap(
  atlas: Atlas,
  style: Style,
  size: number,
  repeat: boolean,
  limit?: number,
): Wrapped
```

| Parameter | Type | Description |
| --- | --- | --- |
| `atlas` | `Atlas` |  |
| `style` | `Style` |  |
| `size` | `number` |  |
| `repeat` | `boolean` |  |
| `limit?` | `number` |  |

Defined in [packages/text/src/orbit.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/text/src/orbit.ts#L193).
