0.30.0 RELEASE NOTES
Fizlet 0.30.0
By Chris Cooley ↗ · · CHANGELOG.md ↗
@fzlt/core/ribbon-tracks(new entry point of the ribbon brick, ALPHA; 3,778 B gz with all of it, budget 3,840): what a game's tracks need on top of@fzlt/core/ribbon, as separate exports on one small painter, so a page pays only for the ones it imports.@fzlt/core/ribbonitself is unchanged (2,683 B, budget 2,752; its output is now pinned by a hash of 60,507 path commands over 40 views).painter(d, ground, { cluster, layer, cap, buckets, light, ambient, lift }): the painter's pieces for a scene with its own layout (a road graph walked every frame):layout(fn),WP,hy,bucketandBK,emit(color, corners),B(the frame's camera),color(color, at)(withata slot repainted: a theme change),light(dir, ambient),paint(to add the decal again afterd.clear()),lines,stats. 1,986 B alone (budget 2,048).band(P, line, from, to, color, closed, step): ribbon's band on the painter (the same polygons, fill for fill). 2,843 B with the painter (budget 2,880).runs(P, band, { at, colors, period }): the band's colour changes at distances along the line,nullfor a gap, repeating everyperiod(a kerb that alternates, a dashed centre line, a strip that stops and starts). 3,112 B with the painter and band (budget 3,136).bands(P, line, edges, colors, { closed, lap, step }): bands side by side; the one painted first reacheslap(default 0.15 units) in under its neighbour, and a row's bands share one depth bucket (no seam at any zoom). 2,960 B with the painter (budget 3,008).cut(P, exact)andhidden(P, corner): what is behind a crest is skipped, and a piece that goes behind one is clipped exactly at the crest line. 2,625 B with the painter (budget 2,688).- Zero allocation per frame with all of it on. Tests:
tests/ribbon-tracks.test.mjs,tests/ribbon-tracks.mjs(Chromium, one still canvas per export).