Skip to the content

Taisen Brackets対戦

Knockout brackets as SVG, from a list of ties.

Taisen (対戦, たいせん) is Japanese for a matchup: two sides facing each other. About the name

Contents

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

NameTypeDescription
widthnumber

The width of the drawing, in pixels.

heightnumber | null

Its height. null is as tall as the bracket needs (a phone's).

Examples

import { SIZES, type Size } from "@johnmorrisdotca/taisen-brackets";

const wide: Size = SIZES.wide;
console.log(wide.width, wide.height);
1200 675

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/taisen-brackets 0.20.0.