Skip to content

fix: render rounded smt pad textures - #942

Open
vahapogut wants to merge 1 commit into
tscircuit:mainfrom
vahapogut:codex/render-rounded-smt-pads
Open

fix: render rounded smt pad textures#942
vahapogut wants to merge 1 commit into
tscircuit:mainfrom
vahapogut:codex/render-rounded-smt-pads

Conversation

@vahapogut

Copy link
Copy Markdown

Fixes #500

Summary

  • Render rect and rotated_rect SMT pads with positive rectBorderRadius/corner_radius as rounded canvas paths in the pad texture.
  • Keep non-rounded SMT pads on the existing circuit-to-canvas path.
  • Add coverage for texture-space mapping, radius scaling, rotation, and non-rounded pad fallback.

Verification

  • bun run build
  • bun x biome check src\utils\pad-texture.ts tests\pad-texture.test.ts
  • Direct bun helper verification for rounded and plain SMT pads
  • git diff --check

Note: bun test tests\pad-texture.test.ts is blocked on this Windows machine by the repo preload bun-match-svg importing looks-same/sharp; sharp fails to install/link locally.

@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
3d-viewer Ready Ready Preview, Comment Jun 23, 2026 12:49pm

Request Review

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.

add rectBorderRadius support to smtpads

1 participant