Compare commits
2
Commits
820e8325a6
...
f0c1289519
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f0c1289519 | ||
|
|
128172d3a8 |
@@ -110,12 +110,11 @@ naming every card on the Monitor grid, its width and its order, and generates th
|
||||
from it — the column ladder, the span clamps at each width, the row-height cap, and the
|
||||
compensation when a conditional card is absent. Column counts are 8/4/2/1 and spans are 1/2/4/8,
|
||||
which is what lets the board re-cut itself at any width with no holes and no hand-placed card.
|
||||
Breakpoints are arithmetic over `VV_MON_CARD_FLOOR`, never chosen by eye. The row-height cap is
|
||||
conditional on the same arithmetic: it applies only where a rung fits one screen, because a rung
|
||||
with more rows than that scrolls the page however its rows are sized, and capping there would clip
|
||||
every card to buy nothing. `pages/monitor.php` carries the card bodies and nothing about where
|
||||
they go; moving a card is moving a line in that array. The page cross-checks the declaration
|
||||
against the cards that actually rendered and says so in the browser if they disagree.
|
||||
Breakpoints are arithmetic over `VV_MON_CARD_FLOOR`, never chosen by eye, and the row-height cap
|
||||
is conditional on the same arithmetic — it applies only where a rung fits one screen.
|
||||
`pages/monitor.php` carries the card bodies and nothing about where they go; moving a card is
|
||||
moving a line in that array. The page cross-checks the declaration against the cards that
|
||||
actually rendered and says so in the browser if they disagree.
|
||||
|
||||
**Caching.** Several endpoints serve from `$VV_CACHE_DIR` (`/tmp/varaverk/api`, tmpfs) rather than hitting live
|
||||
APIs on every page view, refreshed by `Tools/api_cache_writer.sh`. `?live=1` bypasses the
|
||||
|
||||
@@ -13,9 +13,14 @@
|
||||
// Powers of two, all the way down.
|
||||
// Column counts are 8, 4, 2, 1 and every span is 1, 2, 4 or 8. That pairing is what makes
|
||||
// the board tile with no holes at every width without a single hand-placed card: 32 span
|
||||
// units divide into 8 columns as 4 rows, into 4 as 8 rows, into 2 as 16, into 1 as 32.
|
||||
// A rung of 6 or 10 columns does not divide a span of 4, which is why the previous ladder
|
||||
// needed a per-breakpoint override for every wide card and still left holes.
|
||||
// units divide into 8 columns as 4 rows and into 4 as 8. A rung of 6 or 10 columns does
|
||||
// not divide a span of 4, which is why the previous ladder needed a per-breakpoint
|
||||
// override for every wide card and still left holes.
|
||||
//
|
||||
// Below four columns the arithmetic stops being a division. Spans clamp to the column
|
||||
// count, so a span-4 card contributes 2 at two columns and 1 at one, and the board is 13
|
||||
// rows and then 18 rather than the 16 and 32 a naive division predicts. It still tiles
|
||||
// without holes, for a different reason: a clamped card fills its row outright.
|
||||
//
|
||||
// Breakpoints are arithmetic, not taste.
|
||||
// A column count is viable exactly when the cards still fit:
|
||||
|
||||
Reference in New Issue
Block a user