Skip to content

Add X and Y offset distance overlay while dragging with the Select tool #2814

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

Merged
merged 11 commits into from
Jul 9, 2025

Conversation

Kavin006
Copy link
Contributor

@Kavin006 Kavin006 commented Jul 1, 2025

No description provided.

@Keavon
Copy link
Member

Keavon commented Jul 1, 2025

!build

Copy link

github-actions bot commented Jul 1, 2025

📦 Build Complete for 0c421c9
https://68877de9.graphite.pages.dev

@Kavin006
Copy link
Contributor Author

Kavin006 commented Jul 6, 2025

Could you please check if it has all the expected behaviours.

Copy link

github-actions bot commented Jul 6, 2025

📦 Build Complete for 3c7f47f
https://b630e863.graphite.pages.dev

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.

Thank you for the useful contribution!

@Keavon Keavon changed the title Add X and Y offset overlay while dragging the select tool Add X and Y offset distance overlay while dragging with the Select tool Jul 9, 2025
@Keavon Keavon enabled auto-merge (squash) July 9, 2025 10:42
@Keavon Keavon merged commit e025103 into GraphiteEditor:master Jul 9, 2025
4 checks passed
@mTvare6
Copy link
Collaborator

mTvare6 commented Jul 10, 2025

@Kavin006 looks like the pivot stored in select tool is viewport space and doesn't respect PTZ changes.

output2.mp4

@Kavin006
Copy link
Contributor Author

Didn't realise this could happen. I feel like we have to add the document position of drag start to SelectToolData to fix this. This is also the case with the selection box unless its intended there.

@Keavon
Copy link
Member

Keavon commented Jul 10, 2025

It works correctly when you pan (e.g. scroll with the mouse wheel) with G grabbing, but just not dragging with left click as your code implemented. Could you please work on a followup PR that attempts to solve it using the best approach you can figure out? Thanks!

urisinger pushed a commit to urisinger/Graphite that referenced this pull request Jul 15, 2025
…ol (GraphiteEditor#2814)

* Add offset overlay to select tool

* Add overlay to Dragging

* Add axis align behavior

* Style changes

* Add trim to string

* reduce code duplication

* Code review

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
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.

4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy