- 5591d4f: Leagues that split into a championship group and a relegation group, like the Scottish Premiership.
roundRobintakes any number oflegs, andgroupscan be the groups themselves as lists of participant ids.standingstakes acarryOvertable from an earlier phase, so points from before the split count. See the new "League with a split" page.
- Updated dependencies [5591d4f]
- @react-brackets/core@2.1.0
- 89bb879: The fit button turns on again after panning a tall bracket at fit scale, so you can always get back to the top. Thanks to @YiheHuang for the fix in #83.
- Updated dependencies [89bb879]
- @react-brackets/core@2.0.2
- Fix swiping back and forth in the paged view. Swiping one way and back past the first round while holding left the cards stuck mid-move, so the next swipe dropped the round in focus or jumped two rounds at once until the page was resized. Swiping after a move settles works again too, which 2.4.3 broke.
- 3de42b7: Smoother paged view on phones. A card that grows by itself, like a roster opening with a CSS transition, no longer makes the bracket run the same move twice, resizing the window no longer animates the cards, and a card wider than its round's column no longer spills over the next round: the theme keeps cards within their column, so the gap between rounds always holds.
- ea88990: Faster live updates on large brackets. Results keep every match, round and group they don't change as the same object, connector lines are measured again only when the layout changes, and only the cards whose match changed re-render, as long as
renderMatchkeeps its identity. On a 256-team bracket, a score update now takes React about a tenth of the time it did. - Updated dependencies [ea88990]
- @react-brackets/core@2.0.1
- 088b9f0: Install with npm again. Since 2.2.0 (and native 0.1.0) the published packages listed
@react-brackets/coreasworkspace:*, a range only a monorepo understands, sonpm installfailed withEUNSUPPORTEDPROTOCOL. They now depend on^2.0.0.
-
a84f963: Round navigation and zoom are fully headless.
Bracket.Paginationtakes children, built from the newBracket.PageButton,Bracket.PreviousPage,Bracket.NextPageandBracket.PageIndicatorparts orusePagination(). Zoom controls are parts too,Bracket.ZoomControls,Bracket.ZoomIn,Bracket.ZoomOut,Bracket.ZoomResetandBracket.ZoomLevel, which work anywhere inside the root, as doesuseZoom()for controls of your own.<Bracket>takesrenderPaginationandrenderZoomControls.Every pan and zoom behaviour is an option of the new
zoomprop: the limits, the step, where the tree starts and rests, pan, pinch, wheel, double tap, momentum, edge elasticity, pinch overshoot, the keyboard, andonZoomChange. A drag now glides on and springs back at the edges, a double click zooms in and back out, and+,-,0and the arrow keys work while the viewport has focus. Theswipeprop tunes the paged view: how much of the width the round in focus takes, how far a drag must go, how far a flick carries, and the elasticity at the first and last round. Existing code keeps working as it did.
- dbcbbbf: The paged view no longer cuts off the taller round while it slides away or in: it stays tall enough for both rounds during the move and settles to the new round's height as it lands.
pageHeight="follow"brings back the height that blends under the finger.
- af6ace7: Swiping the paged bracket now moves under the finger: the next round tightens into focus while the one before slides away, and letting go finishes the move or takes it back. A long or fast swipe crosses several rounds at once; the new
maxSwipeRoundsprop limits that, andmaxSwipeRounds={1}pages one round at a time. Quick flicks page reliably, since a release is judged by where the finger was heading, and the list view slides from wherever the finger let go instead of jumping.
-
5ac602b: Smoother swiping on phones, especially iOS Safari.
- The paged bracket follows the finger without re-rendering, pages on a quick flick, and glides on from where the finger lifts instead of jumping back first.
- Connector lines move and fade with their cards on every frame, instead of disappearing while cards move.
- The page no longer scrolls up and down during a sideways swipe.
- Swiping on touch screens no longer jumps a round at once (a regression in 2.1.1).
- Cards no longer stay hidden when the bracket re-renders mid-animation, like when a live score lands.
- The scrolling tree no longer triggers the browser's back gesture when it reaches its edge.
- 8b75a6e:
mode="fit"andmode="pan-zoom"no longer collapse before they measure. Server-rendered HTML keeps the tree at its natural size, so the page doesn't jump open on load.
-
e021e7a: Draw your own connector lines.
Bracket.Connectorstakes a function as children and adefsprop, and the newBracket.Connectorpart renders one line with any SVG attribute, likestrokeDasharray,markerEndor your ownd.<Bracket>gets matchingrenderConnectorandconnectorDefsprops, anduseConnector()reads the line inside your own component.A swipe or pan released outside the bracket now ends instead of sticking to the pointer.