strip function
The element's content laid out as the browser did, drawn once: backgrounds and borders of its descendants, images and inline SVGs, then the text.
import { strip } from '@dioramajs/text/marquee'. Undefined when there is nothing to draw.
function strip(
element: Element,
ratio: number,
widest: number,
): Promise<Strip | undefined>Parameters
| Name | Type | Description |
|---|---|---|
element | Element | |
ratio | number | |
widest | number |
Defined in packages/text/src/marquee.ts.