Repository navigation
Per-side wall thickness and lid tolerance; fix Back/Forward - #2
Merged
Merged
Conversation
Each side wall was half the Wall thickness setting (the cavity was `width - thick` wide), while the floor got the full value. Lid tolerance was likewise the total gap, split between the two sides, and the lid's insert ring had half-thickness walls too. Now the floor, every side wall and the lid ring are all Wall thickness thick, and Lid tolerance is the clearance on each side. The default tolerance drops from 2 to 0.4 mm, since 2 mm per side would be very loose. Saved links keep their numbers but now produce thicker walls and a smaller interior. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Restoring a history entry no longer pushes a new one, which had wiped out Forward and kept Back from stepping through edits. - The entry the page loads on now gets a state via replaceState, so Back can return to the starting box (it used to fail to parse and do nothing). - Going back cancels an edit still waiting on the 1 s save debounce. - An entry without valid state falls back to the ?data= in its URL. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the two known issues listed in #1.
Wall thickness and lid tolerance now apply per side
width − thickwide. Lid tolerance was the total gap split across both sides, and the lid's insert ring also had half-thickness walls.boxToSolidsnames each size reduction (cavityShrink,plugShrink,holeShrink) so the per-side arithmetic is explicit.Back/Forward through edits
?data=in its URL.Behavior change to note
Saved and shared links render differently. A link with
wallThickness: 2now gives 2 mm side walls instead of 1 mm, and a correspondingly smaller interior. Its lid tolerance means per side too. There is no versioning to keep old links unchanged.Testing
main:pushState/back/forward.npm run typecheck,npm run lint,npm test(43 tests) andnpm run buildall pass.🤖 Generated with Claude Code