Function getComputedPixels
- getComputedPixels<T>(elOrQuery, ...properties): ComputedPixelsMap<T>
Type Parameters
- T extends readonly (keyof CSSStyleDeclaration)[]
Parameters
- elOrQuery: string | HTMLElement
Rest
...properties: T
Returns ComputedPixelsMap<T>
Returns the computed measurements of CSS properties via getComputedStyle.
Throws an error if value from
getComputedStyle
is not a string or does not end in 'px'.