ブロックする >utils >スタイル >getSize

utils.style.getSize() 関数

要素の高さと幅を取得します。Closure の goog.style.getSize に類似

署名:

export declare function getSize(element: Element): Size;

パラメータ

パラメータ 説明
要素 要素 サイズを取得する要素です。

戻り値:

サイズ

幅と高さのプロパティを持つオブジェクト。