Box interface
A viewport box in CSS px, as anchors report it.
import type { Box } from '@dioramajs/diorama/effects'interface BoxMembers
| Name | Type | Description |
|---|---|---|
readonly height | number | Height, CSS px. |
readonly width | number | Width, CSS px. |
readonly x | number | Viewport x, CSS px. |
readonly y | number | Viewport y, CSS px. |
Also exported from @dioramajs/diorama/render, @dioramajs/effects, @dioramajs/render.
Defined in packages/render/src/index.ts.