Skip to content

Fix manualEdits placement inside positioned groups#2313

Open
garrettparker245-code wants to merge 6 commits into
tscircuit:mainfrom
garrettparker245-code:fix-manual-edits-positioned-groups
Open

Fix manualEdits placement inside positioned groups#2313
garrettparker245-code wants to merge 6 commits into
tscircuit:mainfrom
garrettparker245-code:fix-manual-edits-positioned-groups

Conversation

@garrettparker245-code
Copy link
Copy Markdown

Fixes #2281.

Summary

  • Keep PCB manualEdits.pcb_placements inside positioned groups in board/subcircuit coordinates instead of applying the parent group transform again.
  • Keep manually placed descendants static during group packing.
  • Skip pack-output transforms for manually placed PCB components that are already at their absolute manual position.
  • Apply the same parent-transform fix to schematic manual placements.
  • Add focused PCB and schematic regression tests for positioned-group manual edits.

Tests

  • bun test tests/pcb-packing/manual-edits-positioned-group-anchor-pcb.test.tsx tests/components/normal-components/manual-edits-positioned-group-anchor-schematic.test.tsx
  • bunx tsc --noEmit
  • bunx biome format lib/components/base-components/PrimitiveComponent/PrimitiveComponent.ts lib/components/primitive-components/Group/Group_doInitialPcbLayoutPack/Group_doInitialPcbLayoutPack.ts lib/components/primitive-components/Group/Group_doInitialPcbLayoutPack/applyPackOutput.ts tests/pcb-packing/manual-edits-positioned-group-anchor-pcb.test.tsx tests/components/normal-components/manual-edits-positioned-group-anchor-schematic.test.tsx --write

Note

No bounty is currently attached to this issue, but if this fix is useful and you are open to tipping via Algora or another public route, that would be appreciated.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 20, 2026

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

Project Deployment Actions Updated (UTC)
tscircuit-core-benchmarks Ready Ready Preview, Comment May 20, 2026 7:01am

Request Review

@github-actions
Copy link
Copy Markdown

This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

manualEdits position double-counts the parent group's anchor for components inside positioned regions

1 participant