Home > @jsplumb/browser-ui > offsetSize
#
offsetSize() functionGets the offset width and offset height of the given element. Not safe for SVG elements. This method was previously exported as size
but has been renamed in order to reflect the fact that it uses offsetWidth and offsetHeight, which are not set on SVG elements.
Signature:
export declare function offsetSize(el: Element): Size;
#
ParametersParameter | Type | Description |
---|---|---|
el | Element |
Returns:
Size