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

notePartsfunction

The pieces of a note under a tie's score, short: "a.e.t.", "pens", "in 7", "agg.".

Import it

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

Also exported from: @johnmorrisdotca/taisen-brackets

Definition

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

Parameters

NameTypeDescription
tieTie

The tie.

vVoice

The voice of a language, from voiceOf.

Returns

string[]

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

Examples

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

const { ties } = layoutBracket([{ sides: ["ARG", "FRA"], score: [3, 3], extraTime: true, pens: [4, 2] }]);
console.log(noteParts(ties[0], voiceOf({})));
[ 'a.e.t.', 'pens' ]

What it prints (run when this page was built)

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