strips function
The cloth of a style.
import { strips } from '@dioramajs/text/ribbon'A tinted flag or silk is the element's box; a tinted ribbon spans the box and splits its height between the lines. Without a tint the cloth is the ink with pad px around it: the whole text for a flag or silk, each line on its own for a ribbon.
function strips(
r: Pick<Raster, 'quads'>,
style: Style,
box: { readonly height: number; readonly width: number },
tinted: boolean,
pad: number,
): Strip[]Parameters
| Name | Type | Description |
|---|---|---|
r | Pick<Raster, 'quads'> | |
style | Style | |
box | { readonly height: number; readonly width: number } | |
tinted | boolean | |
pad | number |
Defined in packages/text/src/ribbon.ts.