blockly > utils > style > getBorderBox

utils.style.getBorderBox() 函式

從 Closure 的 goog.style.getBorderBox 複製像素後的運算邊框寬度 (每一側)

Signature:

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

參數

參數 類型 說明
元素 元素 要取得框線寬度的元素。

傳回:

矩形

計算的邊框寬度。