ElementDimensions
Dimensions for element size and its position relative to the viewport.
API
interface ElementDimensions {
top: number;
left: number;
width: number;
height: number;
}
top
numberThe distance from the top of the viewport in pixels
left
numberThe distance from the left of the viewport in pixels
width
numberThe width of the element in pixels
height
numberThe 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