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 · The road to the final

RoadSizetype

The sizes of the road chart are the bracket's: card (the default here), square, wide (the finalists at the two ends) and phone.

Import it

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

Also exported from: @johnmorrisdotca/taisen-brackets

Definition

type RoadSize = SizeName;

Examples

import { roadToFinal, type RoadSize } from "@johnmorrisdotca/taisen-brackets";

const size: RoadSize = "wide";
console.log(roadToFinal([{ name: "Owls", path: [] }, { name: "Gulls", path: [] }], { size }).draw().startsWith("<svg"));
true

What it prints (run when this page was built)

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