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.
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.
- xrequisnumber
- Horizontal distance from the left of the viewport.
- yrequisnumber
- Vertical distance from the top of the viewport.
- widthrequisnumber
- Width of the element in pixels.
- heightrequisnumber
- Height of the element in pixels.
- toprequisnumber
- Distance from the top of the viewport (same as y).
- bottomrequisnumber
- Distance from the top of the viewport to the bottom edge (top + height).
- leftrequisnumber
- Distance from the left of the viewport (same as x).
- rightrequisnumber
- 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.