Skip to content

The rings: draw's ring as it is now, read from one vantage - #54

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): "use the new ring in 3d to"

What changed

makeRing in 3d.html (DRAW'S RING) was a copy of draw's old boma fisheye. It is now the ring draw and games use since reportbase/draw#138, #139 and #140. That covers the top bar, the parts strip, the tool strip and the history strip.

  • Layout: item k stands d = k − f items from the focus f, the nearer way round, at x = s/(1 + |s|) of the half-width with s = d/H. No tan, no square root.
  • Size:
    • Each item is drawn smaller as its room shrinks, and is hidden (ring-off) below 0.15.
    • An item's size is written before it is shown, and a hidden item is not shown to be measured. This is draw's fix for chips that swelled while panning.
  • Gestures: a drag keeps the item under the finger, a throw glides, and the wheel steps by its pixels over the pitch.
  • Row: while the items' own widths fit side by side with 4 px gaps, they stand as a centred row and nothing turns.
  • Interface unchanged: layout, refresh, focus(i) (now in items), show(el), angle (the focus, kept as the old name), flat (true while a row), shown, count.

Tests

  • tests/editor.mjs, the chrome step: the paint strip is now told to be a ring by its smaller tiles. Before, it looked for missing ones; at 1360 px the new ring shrinks its 25 tiles but hides none.
  • With LIBS_DIR, node tests/editor.mjs passes on this branch, exit 0.
  • main fails the same step's library-tiles check ("26,false of 26"); this branch passes it.
  • A scene-sway check failed once in a first run here and passed on the rerun.
  • classic.mjs and situations.mjs not run (this change doesn't touch them).

Generated by Claude Code

Every makeRing bar and strip lays its items on the line chart
x = s/(1 + |s|) from a focus counted in items, smaller toward the ends,
hidden below 0.15, and is a centred row while the items' own widths fit.
A drag keeps the item under the finger. The chrome check tells the paint
ring by its smaller tiles, since it now hides none at 1360px.

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 04:11
@reportbase
reportbase merged commit f25b41e into main Nov 27, 2026
3 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