Skip to content

Preserve PCB dimension offset vectors - #4266

Merged
ShiboSoftwareDev merged 5 commits into
tscircuit:mainfrom
anil08607:fix/fabrication-dimension-offset
Oct 1, 2026
Merged

ShiboSoftwareDev merged 5 commits into
tscircuit:mainfrom
anil08607:fix/fabrication-dimension-offset

Conversation

@anil08607

@anil08607 anil08607 commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

PCB note and fabrication note dimensions must emit native offset_distance plus offset_direction; pre-shifting endpoints or authoring extra extension paths duplicates renderer geometry. Explicit footprint-local directions rotate/reflect with the PCB transform without receiving translation. Scalar-only offsets use the perpendicular to board-space endpoints, and coincident endpoints avoid division by zero.

Adds emitted-geometry assertions and visual regressions, including a short 0.25 mm oblique PCB-note offset that exposes duplicate extension lines. Existing fabrication transform coverage remains intact.

Uses released @tscircuit/props@0.0.674 from tscircuit/props#886. The temporary development patch has been removed.

The printed-coil repro snapshot was regenerated because it contains a scalar-offset fabrication dimension: the dimension now renders at its authored offset instead of directly on the measured line.

Validation: focused PCB/fabrication dimension regressions (49 assertions), the printed-coil repro, TypeScript typecheck, and format checks pass against the published props package.

Converter mappings: tscircuit/circuit-json-to-tscircuit#130 and tscircuit/circuit-json-to-tscircuit#132.

@vercel

vercel Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
tscircuit-core-benchmarks Ready Ready Preview Oct 1, 2026 7:23pm UTC

Request Review

@ShiboSoftwareDev
ShiboSoftwareDev marked this pull request as ready for review October 1, 2026 19:23
@ShiboSoftwareDev
ShiboSoftwareDev merged commit 1af9165 into tscircuit:main Oct 1, 2026
19 checks passed
@tscircuitbot

Copy link
Copy Markdown
Contributor

Thank you for your contribution! 🎉

PR Rating: ⭐⭐
Impact: Minor

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


This branch was successfully deployed

1 active deployment
Preview — 75b3a839 Deployed Oct 1, 2026 by vercel[bot]
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.

3 participants