cut function
Cuts the text block for a style.
import { cut } from '@dioramajs/text/unfold'bands 'auto' picks the cut from the text: a band per line for strips and origami (three for a single line of strips), about an em per pleat for accordion. flaps hangs every strip from the page instead of from the strip above, for hover.
function cut(
r: Raster,
style: Style,
bands: number | 'auto',
align: number,
flaps?: boolean,
): Sheet | undefinedParameters
| Name | Type | Description |
|---|---|---|
r | Raster | |
style | Style | |
bands | number | 'auto' | |
align | number | |
flaps? | boolean | Default |
Defined in packages/text/src/unfold.ts.