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

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

Exports

NameKindWhat it is
RoadCharttypeWhat roadToFinal gives back.
RoadDecidedtypeHow a match was decided: ft (full time, the default), aet (after extra time) or pens (a shoot-out after extra time).
RoadFinaltypeThe final, when it has been played.
RoadFinalisttypeA finalist: a team and the matches it played on the way, the earliest first.
RoadGroupMatchtypeOne match of the group stage: as a knockout match, without a round.
RoadInputtypeWhat roadToFinal takes: the two finalists with their paths, or a tournament (a list of matchups, { matchups, teams } or a layout) whose final has two sides.
RoadMatchtypeOne match on a finalist's way.
RoadOptionstypeWhat roadToFinal takes besides the finalists or the tournament.
RoadRecordtypeOne finalist's record on the way.
RoadScoretypeA match's score from the finalist's side: [for, against] (numbers, or text such as a series' 4), or one text, "4-2", that is split at its dash.
RoadSizetypeThe sizes of the road chart are the bracket's: card (the default here), square, wide (the finalists at the two ends) and phone.
RoadTeamtypeA team of a road chart: a Team whose id is optional (a standalone finalist needs only a name), with logo as another name for mark.
roadToFinalfunctionThe road to the final: the two finalists as large round marks with their names at the top, each one's matches on its side (the round mark of both teams with the score between them, and FT, AET or the shoot-out under it), the round names down the middle, and the group stage as a compact row of small marks, codes and scores.
RoadTotalstypeThe numbers behind a road chart.

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