Drarig29 / brackets-viewer.js

A simple library to display tournament brackets (round-robin, single elimination, double elimination).
https://drarig29.github.io/brackets-docs
MIT License
177 stars 45 forks source link

Support weird case in loser bracket #50

Closed Drarig29 closed 3 years ago

Drarig29 commented 3 years ago

The library does not support this Toornament generated bracket.

image

Here, some LB Round 2 matches are directly seeded by the seeding of the stage. And the number of matches in LB Round 1 is not even.

image

Drarig29 commented 3 years ago

An idea to support this would be to detect LB Round 2 matches which are not linked to a LB Round 1 match and add an empty space of the same size of a match (try with an invisible match). This sould fix the alignment.

Drarig29 commented 3 years ago

It does work. I just have to delete the ::before connectors of LB Round 2 matches.

Proof of concept:

image