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

NumberOnesSourcetype

The number ones to draw: a title, a date, a source and one card for each category.

Import it

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

Definition

interface NumberOnesSource {
    title?: string;
    date?: string;
    source?: string;
    cards: readonly RankingCard[];
}

Members

NameTypeDescription
title (optional)string | undefined

The heading. Default: the language's "Number ones".

date (optional)string | undefined

The date or period, at the right of the heading.

source (optional)string | undefined

Where the list comes from, small at the foot.

cardsreadonly RankingCard[]

Examples

import { rankingNumberOnes, type NumberOnesSource } from "@johnmorrisdotca/taisen-brackets";

const source: NumberOnesSource = { date: "October 2026", cards: [{ category: "-66 kg", entry: { name: "Leclerc", points: 1175 } }] };
console.log(rankingNumberOnes(source).includes("#1 in -66 kg"));
true

What it prints (run when this page was built)

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