Skip to content

Check netlabel<>netlabel collisions and prioritize port-only labels#281

Open
64johnlee wants to merge 1 commit into
tscircuit:mainfrom
64johnlee:fix/netlabel-collision-45
Open

Check netlabel<>netlabel collisions and prioritize port-only labels#281
64johnlee wants to merge 1 commit into
tscircuit:mainfrom
64johnlee:fix/netlabel-collision-45

Conversation

@64johnlee
Copy link
Copy Markdown

Summary

Fixes #45 - Check netlabel<>netlabel collisions, place "port only" net labels first

Changes:

  1. Port-only labels prioritized - Sort overlappingSameNetTraceGroups so port-only labels are placed before other labels
  2. Collision detection - Add checkNetLabelCollisions() method to detect overlaps between net labels from different nets
  3. Tracking - Add netLabelCollisions array to record detected collisions

Tests:

  • All 51 tests pass (0 failures)

Closes #45

- Add netLabelCollisions tracking array to record collisions without failing
- Sort overlappingSameNetTraceGroups: port-only labels first
- Add checkNetLabelCollisions() to detect overlaps between different nets
- Add netLabelsOverlap() helper using getRectBounds
- Fixes tscircuit#45
@vercel
Copy link
Copy Markdown

vercel Bot commented May 6, 2026

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

Project Deployment Actions Updated (UTC)
schematic-trace-solver Ready Ready Preview, Comment May 6, 2026 0:51am

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.

Check netlabel<>netlabel collisions, place "port only" net labels first

1 participant