wrap function
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.
import { wrap } from '@dioramajs/text/orbit'. 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.
function wrap(
atlas: Atlas,
style: Style,
size: number,
repeat: boolean,
limit?: number,
): WrappedParameters
| Name | Type | Description |
|---|---|---|
atlas | Atlas | |
style | Style | |
size | number | |
repeat | boolean | |
limit? | number | Default |
Defined in packages/text/src/orbit.ts.