openscopeproject / openscopeproject/InteractiveHtmlBom

Net Highlights Not Applied to Pads

Open
#511 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
4.6k
Forks
578
Avg merge
5h 24m
Merged PRs (30d)
2

Description

In the Net List, there is an option on each row to set a custom color (which is very helpful). While the color-selection works, the color is never actually rendered.

I was able to make a small change to drawFootprint which resolves this:

Original Code:

if (pad.layers.includes(layer)) {
    drawPad(ctx, pad, colors.pad, outline);
...

Updated Code:

if (pad.layers.includes(layer)) {
    var padColor = (highlight) ? colors.pad : (settings.netColors[pad.net] || colors.pad);
    drawPad(ctx, pad, padColor, outline);
...

This works on both the interactive display and when saving images.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the drawFootprint entry point and trace how pad colors are selected for the interactive display and saved images. Verify the net-specific color setting is applied when rendering pads, then confirm both display paths show the selected color.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.