Skip to content
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

Closed

Conversation

vishwamartur
Copy link

Related to #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.

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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this test is good

Copy link
Contributor

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 />

Copy link
Contributor

@seveibar seveibar left a 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=... />

@seveibar
Copy link
Contributor

The fix is probably in this code

image

but you should get a good repro first

vishwamartur and others added 4 commits November 16, 2024 09:48
* 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
Copy link

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.

2 participants