blockly > utils > style > getComputedStyle
utils.style.getComputedStyle() 関数
ノードの計算済みスタイル値を取得します。リクエストされたプロパティが SVG で、明示的に設定されていない場合は、空の文字列を返します(firefox および Webkit)。
Closure の goog.style.getComputedStyle からコピー
署名:
export declare function getComputedStyle(element: Element, property: string): string;
パラメータ
パラメータ | 種類 | 説明 |
---|---|---|
要素 | 要素 | スタイルを取得する要素。 |
プロパティ | string | 取得するプロパティ(キャメルケース)。 |
戻り値:
string
スタイルの値。