Commit 3f81729
authored
* fix(colorbar): keep stack order on update and add stacking direction (#884)
Bump maplibre-gl-components to 0.25.2, which groups colorbars sharing a
corner into one control so updating a colorbar no longer jumps it to the
top of the stack, and adds a stacking-direction option (vertical or
horizontal) for multiple colorbars. Mirror the new stackOrientation field
in the saved project state so the choice round-trips on reopen.
Fixes #884
* test(colorbar): guard stackOrientation round-trip in project state
Export normalizeColorbarState and add unit tests that a horizontal stack
choice persists, missing/unknown values fall back to vertical, and the
state round-trips cleanly. Addresses review feedback on PR #901.
* Address Claude review feedback
- Add an explicit "vertical" pass-through test so the two valid
stackOrientation values are isolated (a `=== "vertical"` typo would
otherwise pass every existing case).
- Use a non-empty customColors in the round-trip input so the
normalizer's empty-string substitution no longer obscures the intent.
- Trim the file header comment to a concise three lines.
* Address Claude review feedback
- Add an @internal JSDoc tag to normalizeColorbarState clarifying it is
exported only for unit testing.
- Add a test covering null/undefined/non-object input (the early-return
branch).
- Drop the file header comment; the describe label and test names cover it.
* feat(colorbar): make the colorbar panel resizable with corner grips
Bump maplibre-gl-components to 0.25.3, which adds two bottom-corner resize
grips to the colorbar GUI panel (matching the HTML and data panels). Drag
either grip to grow the panel toward the map interior.
1 parent 64f2f51 commit 3f81729
5 files changed
Lines changed: 81 additions & 11 deletions
File tree
- apps/geolibre-desktop
- packages/plugins
- src/plugins
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
814 | 814 | | |
815 | 815 | | |
816 | 816 | | |
| 817 | + | |
817 | 818 | | |
818 | 819 | | |
819 | 820 | | |
| |||
1431 | 1432 | | |
1432 | 1433 | | |
1433 | 1434 | | |
1434 | | - | |
| 1435 | + | |
| 1436 | + | |
1435 | 1437 | | |
1436 | 1438 | | |
1437 | 1439 | | |
| |||
1452 | 1454 | | |
1453 | 1455 | | |
1454 | 1456 | | |
| 1457 | + | |
| 1458 | + | |
1455 | 1459 | | |
1456 | 1460 | | |
1457 | 1461 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
0 commit comments