4 Commits

Author SHA1 Message Date
superGeometry 159c98bde6 Text: letters keep the font's own curves as a few lines, arcs and smooth splines (as Draw does a pencil stroke) instead of cutting each curve into 8 straight pieces - extruded text has a face per side, not hundreds (Roboto test string 4917 → 230 edges, within 0.03 mm at 10 mm letters, every hole kept; the ruler's engraving 3704 → 827 faces, built in a third of the time). The latest texts laid out are kept, so placing one doesn't refit on every pointer move
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 17:37:01 +02:00
superGeometry d2c31b1669 Every long dash (—) in the project replaced with a plain hyphen (-): the app's texts, Help, README, comments, styles and tests (433 in 91 files)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 14:01:30 +02:00
superGeometry af0df07208 Phone fixes left over from the screw, closet and ruler builds:
- Fit frames the model in the part of the screen the tool columns and bars leave free, by its real on-screen size (a ruler fitted to the whole phone screen lost both ends under the columns)
- Snapping reaches ~14 px on touch screens, not 25 (taps beside a ruler's ticks jumped onto them)
- Text typed straight after the tap goes into the text, and the box is focused during the tap so a phone opens its keyboard
- History's bin takes two taps (one stray tap deleted a whole extrude)
- Undo survives a reload: the steps are saved beside the project (newest first, up to a few MB) and used only if they lead to exactly the project loaded; saved when the page is hidden too
- Text: X / Y of its point can be typed, and Align left / centre / right (numbers centred on their ticks); the ruler test uses it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 22:17:49 +02:00
superGeometry f69d95bf26 Fixes from building a ruler with cut numbers through the tools on a phone-sized screen (and by code: tests/ruler.test.ts, 160 x 30 x 3, a tick every mm, 0-15, engraved 0.6 deep, removed volume exact):
- Text: points closer than a thousandth of the size are merged (Roboto's "8" had zero-length edges and the cut failed with "hair-thin faces")
- Extrude from a sketch: "All shapes" picks every shape at once, holes left as holes (200 ticks and numbers can't be tapped one by one)
- Rebuilding a model with thousands of edges: listing a shape's edges/faces was quadratic (11000 edges: 21.7 s -> 42 ms); fuseAll joins as a balanced tree. The ruler rebuilds in 7 s instead of 85
- Phones: a tap on a thin shape (a 0.3 mm tick) picks the shape, not its outline
- Sketch Move shows dX/dY; Pattern keeps the direction it was given (spacing typed afterwards used to turn it diagonal)
- The sketch origin snaps only while sketch guide points are on (numbers placed either side of it all jumped onto it)
- The text size is remembered across reloads

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 22:02:16 +02:00