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

BoutOfficialtype

A referee or a judge. Only name is needed.

Import it

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

Definition

interface BoutOfficial extends BoutAthlete {
    role?: "referee" | "judge" | (string & {});
}

Members

NameTypeDescription
role (optional)"referee" | "judge" | (string & {}) | undefined

referee (the language's word), judge (numbered 1, 2, 3 in the order given, in the language's words), or any text you want written (Chair, Mat president). Default judge.

namestring | RankingName

The name as it is to be written (MAYER M.), or its two parts (set by nameStyle).

code (optional)string | undefined

The country's three letters.

flag (optional)string | undefined

A code for the flags function, drawn 4:3.

mark (optional)string | undefined

A mark of your own in place of a flag.

Examples

import { boutBoard, type BoutOfficial } from "@johnmorrisdotca/taisen-brackets";

const referee: BoutOfficial = { role: "referee", code: "MGL", flag: "MN", name: "KHISHIGEE Khas-Erdene" };
console.log(boutBoard({ title: "Final", red: { name: "A" }, blue: { name: "B" }, officials: [referee] }).includes("KHISHIGEE"));
true

What it prints (run when this page was built)

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