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(web): audit trace graph left align #354

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

carver
Copy link
Contributor

@carver carver commented Jan 16, 2025

Bug: When sorted by Node ID, the IDs closest to 0 would be rendered off-screen to the left.

Most of this is a refactor. The only thing that made any difference was adding a padding-left. I don't love the solution, but I couldn't find why the left of the svg was shifted left off the viewport in the first place. So this was all I could come up with. Open to suggestions!

In the old approach, the floating point conversion made it pointless to
use BigNum at all anyway. This should be faster and more precise. The
only rounding that happens is at the sub-pixel level.

Also, removes an unused variable.
Node IDs near 0 were drifting off the left side of the screen. I wish I
knew why this padding was necessary. I don't have much confidence that
it will work at all resolutions.
@carver carver requested a review from mrferris January 16, 2025 06:17
@carver carver self-assigned this Jan 16, 2025
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.

1 participant