Skip to main content

Home > blockly > utils > style > getBorderBox

utils.style.getBorderBox() function

Gets the computed border widths (on all sides) in pixels Copied from Closure's goog.style.getBorderBox

Signature:

export declare function getBorderBox(element: Element): Rect;

Parameters

ParameterTypeDescription
elementElementThe element to get the border widths for.

Returns:

Rect

The computed border widths.