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 · Draw a bracket, a table or a road to the final

BoardSizeNametype

The sizes of a board: tv, tablet, tablet-tall, phone, square and portrait.

Import it

import type { BoardSizeName } from "@johnmorrisdotca/taisen-brackets";

Definition

type BoardSizeName = "tv" | "tablet" | "tablet-tall" | "phone" | "square" | "portrait";

Examples

import { BOARD_SIZES, type BoardSizeName } from "@johnmorrisdotca/taisen-brackets";

const size: BoardSizeName = "square";
console.log(BOARD_SIZES[size]);
{ width: 1080, height: 1080 }

What it prints (run when this page was built)

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