Reference · Where every tie sits
LayoutNametype
How the ties are drawn: tree (the default) is the bracket as ever; the others are other ways to draw the same ties.
Import it
import type { LayoutName } from "@johnmorrisdotca/taisen-brackets/layout";
Also exported from: @johnmorrisdotca/taisen-brackets
Definition
type LayoutName = "tree" | "rows" | "shields" | "update" | "columns" | "playin" | "series" | "groups" | "picture";
Examples
import { drawBracket, type LayoutName } from "@johnmorrisdotca/taisen-brackets";
const layout: LayoutName = "rows";
console.log(drawBracket([{ sides: ["Aurora", "Harbour"], score: [2, 1] }, { sides: ["Cascade", "Delta"], score: [0, 1] }, { sides: ["Aurora", "Delta"], score: [3, 1] }], { layout }).startsWith("<svg"));trueWhat it prints (run when this page was built)