Repository navigation
v0.104.0
A minor release: a new Leaderboard component, and Map can now return to where it started.
Added
-
Leaderboard — entries ranked by a value, with the top three on a podium and the rest as rows. Pass values and it works out the places, with ties sharing one (1, 2, 2, 4). The podium is drawn as bars scaled to the leader's value (
podium="bars", the default), as cards ("cards"), or left out ("none").order="asc"ranks the lowest value first, for times and golf scores.highlightIdmarks the viewer's row and, whenlimitcuts it off, pins it under the list with its real place.changeshows places moved since the last period.<Leaderboard data={players} limit={10} highlightId={me.id} unit="XP" />
-
Map —
recenter()on the ref andrecenteronMap.Controlsreturn to the view the map opened on. Before this, resetting a map meant remounting it with a newkey.useMap()returns the samerecenter. (#228, requested by @yashDahiwale) -
Map —
fitBounds(bounds, options)now takes{ padding, duration }as well as a padding number, and padding can be set per side, so the box can stay clear of a sheet covering part of the map. New types:MapFitBoundsOptions,ViewPadding. (#228, requested by @yashDahiwale)map.current?.fitBounds(bounds, { padding: { top: 48, right: 48, bottom: 320, left: 48 }, duration: 600 }); <Map.Controls recenter />
Fixed
- Map, Flow — the zoom-out button in
Map.ControlsandFlow.Controlsdrew a white minus sign on a white card. Every glyph in both control stacks now uses the muted-foreground token, and the minus matches the plus sign's weight. (#228, reported by @yashDahiwale)
Docs
- Map — examples for moving the camera from code and for the recenter button, a table of the
MapHandlemethods, and a MapTiler source in "Bringing your own tiles".
Upgrading
npm install panelui-native@0.104.0Nothing changes for existing code. A number passed as the second argument to fitBounds still means padding.
This version was published by hand while CI is unavailable, so it carries no npm provenance attestation.