Skip to content

The button rings: the games page's ring, read from one vantage - #138

Merged
reportbase merged 1 commit into
mainfrom
claude/keen-pasteur-irpfwz
Nov 27, 2026
Merged

reportbase merged 1 commit into
mainfrom
claude/keen-pasteur-irpfwz

Conversation

@reportbase

Copy link
Copy Markdown
Owner

Tom (27 Nov 2026): "the two ring works very well, ithe should be used by default. draw repos uses the old ring. update it to the new ring."

What changed

  • makeRing in draw.html. It now uses the games page's ring instead of the shape browser's boma fisheye. That covers every bar built with it: the top bar, the edit view's footer, each strip mode and the animation's chips.
    • Chip k sits d = k − f chips from the focus f, laid on the line chart x = s/(1 + |s|) with s = d/H. No square root, no trigonometry.
    • Each chip is drawn smaller as its room shrinks, using --ring-s. Below 0.15 it is hidden.
    • A drag keeps the chip under the finger; the wheel and a throw still work.
    • When the chips' own widths fit side by side (4 px gaps), they stand in one centred row and nothing turns.
  • The interface is unchanged: refresh, focus(i), centered, shown, strip.__ring. focus(i) is now in chips, and __ring.angle is kept as a name for the same number.
  • The top ring opens at focus(1). It used to open at 1.5; a half-way focus left no chip at full size. On a phone, Draw is now at the focus with Shapes and Fill on either side.
  • The shape browser's carousel (layoutCarousel) is a different widget and is unchanged.

Tests

  • tests/editor.mjs: the phone check now reads which three chips are drawn largest (Shapes, Draw, Fill). Before, it read which chips were in view between the lock and the menu.
  • node tests/editor.mjs and node tests/morph.mjs (QUICK) pass with no uncaught errors.
  • Probed in headless Chromium:
    • 1600 px: a flat row of 25 chips.
    • 900 px and 390 px: the ring, which turns when dragged.
  • Other parts not run.

A rule line for the rings is in CLAUDE.md.


Generated by Claude Code

Every makeRing bar lays its chips on the line chart x = s/(1 + |s|) from a
focus, smaller as their room shrinks, and stands as a plain centred row when
the chips' own widths fit. The phone's bar opens on Draw, Shapes and Fill
the three drawn largest; the editor check reads them so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014hCELqa1Wq59Y67k57PZCD
@reportbase
reportbase marked this pull request as ready for review November 27, 2026 02:15
@reportbase
reportbase merged commit fb85be7 into main Nov 27, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants