本文へ移動

Taisen Brackets対戦

対戦の一覧から、トーナメント表をSVGで描きます。

対戦(たいせん)は、二者が向かい合って勝負することです。 名前について(英語)

目次

リファレンス

決勝までの道

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

リファレンスの説明と例は英語です。見出しと目次は日本語です。

エクスポート

名前種類概要
RoadChart型What roadToFinal gives back.
RoadDecided型How a match was decided: ft (full time, the default), aet (after extra time) or pens (a shoot-out after extra time).
RoadFinal型The final, when it has been played.
RoadFinalist型A finalist: a team and the matches it played on the way, the earliest first.
RoadGroupMatch型One match of the group stage: as a knockout match, without a round.
RoadInput型What 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.
RoadMatch型One match on a finalist's way.
RoadOptions型What roadToFinal takes besides the finalists or the tournament.
RoadRecord型One finalist's record on the way.
RoadScore型A 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.
RoadSize型The sizes of the road chart are the bracket's: card (the default here), square, wide (the finalists at the two ends) and phone.
RoadTeam型A 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.
roadToFinal関数The 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.
RoadTotals型The numbers behind a road chart.

ソースを見るGitHub で編集@johnmorrisdotca/taisen-brackets 0.20.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。