IBox

interface
Layout & Sizing

Bounding-box snapshot — the shape returned by useResizeObserver and intersection utilities, describing an element's position and dimensions in the viewport.

TypeScript

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

x
requis
number
Horizontal distance from the left of the viewport.
y
requis
number
Vertical distance from the top of the viewport.
width
requis
number
Width of the element in pixels.
height
requis
number
Height of the element in pixels.
top
requis
number
Distance from the top of the viewport (same as y).
bottom
requis
number
Distance from the top of the viewport to the bottom edge (top + height).
left
requis
number
Distance from the left of the viewport (same as x).
right
requis
number
Distance from the left of the viewport to the right edge (left + width).

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.