Size型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A size in pixels: a width and, when it is not worked out from the drawing, a height.
インポート
import type { Size } from "@johnmorrisdotca/taisen-brackets/layout";
ほかのエクスポート元: @johnmorrisdotca/taisen-brackets
定義
interface Size {
width: number;
height: number | null;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
width | number | The width of the drawing, in pixels. |
height | number | null | Its height. |
例
import { SIZES, type Size } from "@johnmorrisdotca/taisen-brackets";
const wide: Size = SIZES.wide;
console.log(wide.width, wide.height);1200 675出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。