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 · Draw a bracket, a table or a road to the final

JudoCardContesttype

What the contest card shows: the two athletes and the header. The scores and the clock of a JudoContest are not drawn.

Import it

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

Definition

type JudoCardContest = Pick<JudoContest, "white" | "blue" | "weight" | "round" | "mat" | "contest">;

Members

NameTypeDescription
round (optional)string | undefined
whiteJudoAthlete
blueJudoAthlete
weight (optional)string | undefined

The weight class as a heading (judoCategoryLabel), the round ("Final", roundName), the mat (1, shown as "Mat 1") and the contest number ("G-24").

mat (optional)string | number | undefined
contest (optional)string | number | undefined

Examples

import { judoContestCard, type JudoCardContest } from "@johnmorrisdotca/taisen-brackets";

const contest: JudoCardContest = { white: { name: "Daiki Hoshino", code: "JPN" }, blue: { name: "Mathis Roussel", code: "FRA" }, weight: "Men -66 kg", mat: 1 };
console.log(judoContestCard(contest).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.