Reference · Where every tie sits
Sizetype
A size in pixels: a width and, when it is not worked out from the drawing, a height.
Import it
import type { Size } from "@johnmorrisdotca/taisen-brackets/layout";
Also exported from: @johnmorrisdotca/taisen-brackets
Definition
interface Size {
width: number;
height: number | null;
}
Members
| Name | Type | Description |
|---|---|---|
width | number | The width of the drawing, in pixels. |
height | number | null | Its height. |
Examples
import { SIZES, type Size } from "@johnmorrisdotca/taisen-brackets";
const wide: Size = SIZES.wide;
console.log(wide.width, wide.height);1200 675What it prints (run when this page was built)