# strip

function in `@dioramajs/text/marquee`

```ts
import { strip } from '@dioramajs/text/marquee'
```

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. Undefined when there is nothing to draw.

```ts
function strip(
  element: Element,
  ratio: number,
  widest: number,
): Promise<Strip | undefined>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `element` | `Element` |  |
| `ratio` | `number` |  |
| `widest` | `number` |  |

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