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

Ready-made formats for each league

import { … } from "@johnmorrisdotca/taisen-brackets/presets";

Exports

NameKindWhat it is
LeaguetypeA league with a playoff format by era: nhl, nba, mlb, nfl, cfl, mls or worldcup.
LEAGUE_EMBLEMSconstantThe emblem each league's champion gets by default: an id of @johnmorrisdotca/dougu-sports (generic forms, no league's own mark).
LEAGUESconstantThe leagues that have a format here.
playoffErasfunctionEvery era of a league, oldest first.
playoffFormatfunctionThe playoff format of a league in a season (or a World Cup in its year), or null when there was none or this package does not cover it.
PlayoffFormattypeA league's playoff format in one era: the years it ran, its rounds, how many teams it took, its byes and its sources.
PlayoffRoundtypeOne round of a playoff format: its name and how many games a series is (null for a single game).
roundNamefunctionThe name of a round that has remaining teams left in it, counting from the final: Final, Semi-finals, Quarter-finals, Round of 16…
roundNamesForfunctionThe generic names of count rounds, first round first: roundNamesFor(3) is Quarter-finals, Semi-finals, Final.

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