Skip to content

Conversation

@Quanta-Naut
Copy link
Contributor

@Quanta-Naut Quanta-Naut commented Dec 10, 2025

Sorry for the delay (it's been almost 1.5 months before since I started working on this issue, sorry) had college work.
I have added the offset (x, y) to the pads on hover.

Also deleted the previous PR, messed it up with conflicts.

The attached video is the demo.

Fixes: #409

@vercel
Copy link

vercel bot commented Dec 10, 2025

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

Project Deployment Preview Comments Updated (UTC)
pcb-viewer Ready Ready Preview Comment Dec 11, 2025 5:00pm

@Quanta-Naut
Copy link
Contributor Author

Recording.2025-12-10.190834.mp4

@Quanta-Naut
Copy link
Contributor Author

@imrishabh18 Please review it.

Copy link
Member

@imrishabh18 imrishabh18 left a comment

Choose a reason for hiding this comment

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

image

I don't see the offset hover though in the preview

@Quanta-Naut
Copy link
Contributor Author

Quanta-Naut commented Dec 10, 2025

image I don't see the offset hover though in the preview

@imrishabh18 You will have to toggle the "show offset" under view, I have changed it to true by default

Copy link
Member

@imrishabh18 imrishabh18 left a comment

Choose a reason for hiding this comment

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

LGTM!

@Quanta-Naut
Copy link
Contributor Author

@seveibar Review it please.

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.

You're showing the pad offset, which is an OK feature but not the original issue. We want to show COMPONENT offsets, i.e. component offsets from the parent group. It is similar to the feature for showing group anchors

this feature is interesting but i'm not sure it's useful since generally people position components not individual elements of a footprint unless they're doing footprint design, which is sort of a different thing

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.

some unrelated changes? please reduce to only related changes.

anchor offset should always show or show-by-default with a view menu option to disable (i.e. "Anchor Offsets on Hover")

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.

see comment

I was disappointed to see you removed the option to show all the group anchors

/>
<CheckboxMenuItem
label="Show Group Anchor Offsets"
label="Anchor Offsets on Hover"
Copy link
Contributor

Choose a reason for hiding this comment

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

both these options should be available, they do different things

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.

Draw the position offset when hovering over a component

3 participants