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

FollowedPointer interface

The pointer `follow` tracks.

View as Markdown
import type { FollowedPointer } from '@dioramajs/diorama/kit'

Live: read it in the update.

interface FollowedPointer

Members

NameTypeDescription
readonly overboolean

A mouse or pen is over the element, or a finger is pressed on it.

readonly xnumber

Its last position in client px, like event.clientX. Kept after it leaves.

readonly ynumber

Its last position in client px, like event.clientY. Kept after it leaves.

box
box(box: ClientBox): { readonly x: number; readonly y: number }

Its last position in px of box with y up, as toBox gives it: pass input in the update, so a still pointer keeps its place on the page while it scrolls. The same object every call.

Also exported from @dioramajs/effects/kit.

Defined in packages/effects/src/kit.ts.