Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

Strip interface

One copy of the content drawn into a canvas, and where it sits in the box.

View as Markdown
import type { Strip } from '@dioramajs/text/marquee'
interface Strip

Members

NameTypeDescription
readonly canvasHTMLCanvasElement
readonly contentnumber

Width of the content in px, from its left edge to its right edge.

readonly framereadonly [number, number, number, number]

The canvas in box px: x, y, width, height.

readonly heightnumber
readonly taintedboolean

An image from another origin without CORS made the canvas unreadable.

readonly trailingnumber

Space after the content before the next copy: the row's CSS gap, or 1em for plain text.

readonly widthnumber

Box width and height the strip was drawn at.

Defined in packages/text/src/marquee.ts.