Skip to content

Implement rotated rects#112

Merged
seveibar merged 5 commits into
mainfrom
codex/add-ccwrotationdegrees-support
Apr 20, 2026
Merged

Implement rotated rects#112
seveibar merged 5 commits into
mainfrom
codex/add-ccwrotationdegrees-support

Conversation

@seveibar
Copy link
Copy Markdown
Contributor

Summary

  • Make ccwRotationDegrees render visually CCW in canvas, PNG, SVG, and interactive rect views
  • Update rect bounds, hit testing, and viewport filtering to use the same projected geometry
  • Add rotated rect examples to the shared fixtures and home sample data
  • Stabilize the SVG renderer test and add regression coverage for rotation direction

Testing

  • bun test
  • bun run build

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
graphics-debug Ready Ready Preview, Comment Apr 20, 2026 4:07am

Request Review

@seveibar seveibar changed the title Fix rect rotation rendering and hit testing Implement rotated rects Apr 20, 2026
@seveibar seveibar marked this pull request as ready for review April 20, 2026 03:37
…degrees-support

# Conflicts:
#	lib/getCanvasObjectLabelAtPoint.ts
#	lib/rectGeometry.ts
#	site/components/InteractiveGraphics/hooks/useFilterRects.ts
#	tests/__snapshots__/getPngBufferFromGraphicsObject-rotated-rects.snap.png
#	tests/getCanvasObjectLabelAtPoint.test.ts
@seveibar seveibar merged commit 5acadc5 into main Apr 20, 2026
4 checks passed
@seveibar seveibar deleted the codex/add-ccwrotationdegrees-support branch April 20, 2026 04:09
@tscircuitbot
Copy link
Copy Markdown


Thank you for your contribution! 🎉

PR Rating: ⭐⭐
Impact: Minor

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


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