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 · Where every tie sits

noteLongfunction

The notes of a tie written out, for a sentence or a table: "after extra time", "4–2 on penalties".

Import it

import { noteLong } from "@johnmorrisdotca/taisen-brackets/layout";

Also exported from: @johnmorrisdotca/taisen-brackets

Definition

function noteLong(tie: Tie, v: Voice): string[]

Parameters

NameTypeDescription
tieTie

The tie.

vVoice

The voice of a language, from voiceOf.

Returns

string[]

The notes in full; an empty list when the score needs none.

Examples

import { layoutBracket, noteLong, voiceOf } from "@johnmorrisdotca/taisen-brackets";

const { ties } = layoutBracket([{ sides: ["ARG", "FRA"], score: [3, 3], extraTime: true, pens: [4, 2] }]);
console.log(noteLong(ties[0], voiceOf({ locale: "ja" })));
[ '延長戦', 'PK戦 4–2' ]

What it prints (run when this page was built)

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