Skip to content

Conversation

@singhutsav5502
Copy link
Contributor

@singhutsav5502 singhutsav5502 commented Dec 23, 2024

Further implements and partly closes #1896, Tidies up number text alignment and decimal precision for quick measure overlays.

@singhutsav5502 singhutsav5502 changed the title Tidy up number text alignment and decimal precision for quick measure… Tidy up number text alignment and decimal precision for quick measurement overlays Dec 23, 2024
@singhutsav5502
Copy link
Contributor Author

hi @Keavon just a quick ping, i have pushed the updated code so do review whenever possible.

@Keavon Keavon force-pushed the quick_measure_text_alignment branch from deb2717 to 665aa71 Compare December 26, 2024 06:30
@Keavon
Copy link
Member

Keavon commented Dec 26, 2024

!build

@github-actions
Copy link

📦 Build Complete for 665aa71
https://eabc083c.graphite.pages.dev

@Keavon
Copy link
Member

Keavon commented Dec 26, 2024

A couple (or maybe the same?) failing cases:

capture
capture

I'd also like to see up to two decimal places of precision, but only when necessary. So no trailing zeros in the decimals:

  • 10.00 -> 10
  • 10.30 -> 10.3
  • 10.25 -> 10.25
  • 10.439042 -> 10.44
  • 10.004 -> 10
  • 9.9995 -> 10

@singhutsav5502
Copy link
Contributor Author

okay! will push the changes ASAP.

@Keavon
Copy link
Member

Keavon commented Dec 26, 2024

!build

@github-actions
Copy link

📦 Build Complete for e03a1ac
https://89eb1609.graphite.pages.dev

@singhutsav5502
Copy link
Contributor Author

hi @Keavon, i have pushed the updated code so do review whenever possible.

@Keavon Keavon changed the title Tidy up number text alignment and decimal precision for quick measurement overlays Improve quick measurement overlays with better number alignment and decimal rounding Dec 28, 2024
Copy link
Member

@Keavon Keavon left a comment

Choose a reason for hiding this comment

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

Super! Now it's just a matter of fixing the rotations and this feature will be fully complete.

@Keavon Keavon merged commit 6d737f1 into GraphiteEditor:master Dec 28, 2024
4 checks passed
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.

Tracking Issue: Quick measurement overlays while holding the Alt key

2 participants