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

voiceOffunction

Builds the voice of a drawing from its locale, words and teamName options.

Import it

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

Also exported from: @johnmorrisdotca/taisen-brackets

Definition

function voiceOf(options: Pick<DrawOptions, "locale" | "words" | "teamName">): Voice

Parameters

NameTypeDescription
optionsPick<DrawOptions, "locale" | "words" | "teamName">

The options of a drawing that name its language.

Returns

Voice

The voice.

Examples

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

const voice = voiceOf({ locale: "ja" });
console.log(voice.words.champion, voice.number(1234));
優勝 1,234

What it prints (run when this page was built)

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