rspace-online/website
Jeff Emmett aeb9247f96 fix: shape resize/rotate by converting screen coords to canvas space
Resize and rotation handlers in folk-shape.ts passed raw event.clientX/Y
(screen coordinates) to toLocalSpace/angleFromOrigin, but those methods
expect canvas-parent coordinates. With any zoom/pan, the two coordinate
systems diverge, making resize non-functional and rotation erratic.

Added #screenToParent() to convert viewport coords to the parent's
coordinate space using getBoundingClientRect + parent scale. Applied to:
- Resize handle drag (pointermove → toLocalSpace)
- Rotation start (pointerdown → angleFromOrigin)
- Rotation drag (pointermove → angleFromOrigin)

Also syncs ghost placeholder size with zoom changes so the dotted
preview stays accurate if user zooms while in placement mode.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 10:38:06 -08:00
..
public feat: client-side tab caching for instant tab switching 2026-02-28 23:21:10 +00:00
admin.html fix: use single-segment admin endpoints to bypass Cloudflare redirect 2026-02-28 22:58:37 -08:00
canvas.html fix: shape resize/rotate by converting screen coords to canvas space 2026-03-01 10:38:06 -08:00
create-space.html feat: logo + standardized header across all rSpace pages 2026-02-27 17:16:29 -08:00
index.html feat: restyle rSpace.online about page to rApp theme + (you)rSpace CTA in space switcher 2026-02-27 17:50:30 -08:00
shell.ts feat: client-side tab caching for instant tab switching 2026-02-28 23:21:10 +00:00
sw.ts feat: add offline-first support with IndexedDB persistence and Service Worker 2026-02-18 12:39:28 -07:00