noteParts関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The pieces of a note under a tie's score, short: "a.e.t.", "pens", "in 7", "agg.".
インポート
import { noteParts } from "@johnmorrisdotca/taisen-brackets/layout";
ほかのエクスポート元: @johnmorrisdotca/taisen-brackets
定義
function noteParts(tie: Tie, v: Voice): string[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
tie | Tie | The tie. |
v | Voice | The voice of a language, from |
戻り値
string[]
The notes; an empty list when the score needs none.
例
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' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。