-
Notifications
You must be signed in to change notification settings - Fork 34
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
Fix silkscreen paths causing extra pins in schematic view #311
Conversation
Related to tscircuit#308 Add method to prevent silkscreen paths from being interpreted as pins in schematic view. * **SilkscreenPath.ts** - Add `doInitialSchematicComponentRender` method to `SilkscreenPath` class to prevent silkscreen paths from being interpreted as pins in the schematic view. * **silkscreenpath.test.tsx** - Add test case to verify that silkscreen paths are not interpreted as pins in the schematic view.
|
||
const schematicPins = project.db.schematic_pin.list() | ||
|
||
expect(schematicPins.length).toBe(0) |
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.
this test is good
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.
hmm actually the repro calls for a <chip />
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.
fix doesn't make sense, test doesn't test <chip footprint=... />
* Add test case for rendering SilkscreenPath on different layers * Add test case for rendering SilkscreenPath with different routes
…chematic view * Add test case to check that the chip footprint does not cause extra pins to appear in the schematic view * Cover various chip footprints and configurations in the test case * Ensure the test case includes a silkscreen path to verify it is not interpreted as a pin
…h` class to prevent fabrication note paths from being interpreted as pins in the schematic view * Add a new method `doInitialSchematicComponentRender` to the `FabricationNotePath` class * Leave the method intentionally blank to prevent fabrication note paths from being interpreted as pins in the schematic view
This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs. |
Related to #308
Add method to prevent silkscreen paths from being interpreted as pins in schematic view.
doInitialSchematicComponentRender
method toSilkscreenPath
class to prevent silkscreen paths from being interpreted as pins in the schematic view.