Reference
Ready-made formats for each league
import { … } from "@johnmorrisdotca/taisen-brackets/presets";
Exports
| Name | Kind | What it is |
|---|---|---|
League | type | A league with a playoff format by era: nhl, nba, mlb, nfl, cfl, mls or worldcup. |
LEAGUE_EMBLEMS | constant | The emblem each league's champion gets by default: an id of @johnmorrisdotca/dougu-sports (generic forms, no league's own mark). |
LEAGUES | constant | The leagues that have a format here. |
playoffEras | function | Every era of a league, oldest first. |
playoffFormat | function | The 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. |
PlayoffFormat | type | A league's playoff format in one era: the years it ran, its rounds, how many teams it took, its byes and its sources. |
PlayoffRound | type | One round of a playoff format: its name and how many games a series is (null for a single game). |
roundName | function | The name of a round that has remaining teams left in it, counting from the final: Final, Semi-finals, Quarter-finals, Round of 16… |
roundNamesFor | function | The generic names of count rounds, first round first: roundNamesFor(3) is Quarter-finals, Semi-finals, Final. |