W3cubDocs

/Angular

ElementDimensions

Dimensions for element size and its position relative to the viewport.

API

interface ElementDimensions {
  top: number;
  left: number;
  width: number;
  height: number;
}

top

number

The distance from the top of the viewport in pixels

left

number

The distance from the left of the viewport in pixels

width

number

The width of the element in pixels

height

number

The height of the element in pixels

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/cdk/testing/ElementDimensions