-
Couldn't load subscription status.
- Fork 88
Fix schpinspacing width #1578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
seveibar
merged 23 commits into
tscircuit:main
from
RaghavArora14:fix-schpinspacing-width
Oct 27, 2025
+286
−97
Merged
Fix schpinspacing width #1578
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
f81b8b0
Fix schPinSpacing changing the width of the schematic box
RaghavArora14 e1e6fc4
Delete PR-DESCRIPTION.md
RaghavArora14 186d155
Delete reproduce-issue.md
RaghavArora14 551b80d
Remove comments on padding logic for dimensions
RaghavArora14 d5d3338
Simplify fix and combine tests into single file
RaghavArora14 5a3af2d
Move padding constant to root scope with descriptive name
RaghavArora14 c336810
Fix schPinSpacing changing the width of the schematic box
RaghavArora14 7b1179e
Rename test to repro68-schpinspacing-width
RaghavArora14 b8e82b6
Add minimum width for chips with left/right pin labels
RaghavArora14 e76cab9
Format code and rename schWidth to resolvedSchWidth
RaghavArora14 38ce274
Convert portHints to pinLabels for width calculation
RaghavArora14 fcb9a29
Format Fix
RaghavArora14 668fb8a
Fix portHints extraction to access footprint children directly
RaghavArora14 f356196
Fix portHints extraction to access footprint children directly
RaghavArora14 01d50a7
Access Footprint from children instead of props
RaghavArora14 c6f94c4
Update snapshot for chip-layer-flip test
RaghavArora14 3b93c88
refactor: use selectAll('port') and getNameAndAliases() for pin labels
RaghavArora14 bf92957
test: update snapshots for tests with numeric portHints
RaghavArora14 f56aee4
refactor: remove redundant pinLabels merging logic
RaghavArora14 d128a8f
bun format
RaghavArora14 232618b
fix: keep props.pinLabels for label-to-pin-number mapping and update …
RaghavArora14 55c6eaa
refactor: extract _getBestDisplayPinLabel() to consolidate pin label …
RaghavArora14 2ee7292
fix: add type cast for Port in _getPinLabelsFromPorts
RaghavArora14 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...s/components/normal-components/__snapshots__/chip-layer-flip-schematic.snap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 10 additions & 2 deletions
12
...hots__/chip-override-footprint-ports-when-schPortArrangement-schematic.snap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 10 additions & 2 deletions
12
tests/components/normal-components/__snapshots__/header-schematic.snap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 20 additions & 20 deletions
40
...es/__snapshots__/example7-voltage-regulator-with-connections-schematic.snap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions
16
...atic-match-adapt/__snapshots__/voltage-regulator-match-adapt-schematic.snap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this merging necessary anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kept props.pinLabels merging - Still needed for label-to-pin-number mapping in getNumericSchPinStyle() and getAllDimensionsForSchematicBox() to handle non-numeric labels like "A4" or "C" in schPortArrangement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you sure?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(please show the difference via a snapshot)