Strip interface
One copy of the content drawn into a canvas, and where it sits in the box.
import type { Strip } from '@dioramajs/text/marquee'interface StripMembers
| Name | Type | Description |
|---|---|---|
readonly canvas | HTMLCanvasElement | |
readonly content | number | Width of the content in px, from its left edge to its right edge. |
readonly frame | readonly [number, number, number, number] | The canvas in box px: x, y, width, height. |
readonly height | number | |
readonly tainted | boolean | An image from another origin without CORS made the canvas unreadable. |
readonly trailing | number | Space after the content before the next copy: the row's CSS gap, or 1em for plain text. |
readonly width | number | Box width and height the strip was drawn at. |
Defined in packages/text/src/marquee.ts.