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

[DRAFT] [Help wanted] Sign zoom handles #1479

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

t71rs
Copy link
Contributor

@t71rs t71rs commented Jun 17, 2024

Sign Zoom Handles

Opening this Draft PR regarding the issue #1247 . I implemented a basic zoom functionality but have not been able to get the calculation of the position 100% correct when the signature is placed while zooming. (Placement is correct when no zoom is used)
Here is an example of what i mean:

image
As you can see the signature is alittle bit to high and a little bit too far left. This error is getting worse with increasing zoom. At this point i do not have an explanation for it anymore. So if anyone would like to pick this up and work on it, please do!

This is how i am calculating the position: (example for x coordinate)
image
The Blue Part is the actual Document. The white part is the part of the document that is visible in the viewport when you are zooming.

I would be happy about some help or as I already said if some one wants to work on this it would be fine for me as well.

Checklist:

  • I have read the Contribution Guidelines
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings

Contributor License Agreement

By submitting this pull request, I acknowledge and agree that my contributions will be included in Stirling-PDF and that they can be relicensed in the future under the MPL 2.0 (Mozilla Public License Version 2.0) license.

(This does not change the general open-source nature of Stirling-PDF, simply moving from one license to another license)

@Frooodle Frooodle changed the title Sign zoom handles [DRAFT] [Help wanted] Sign zoom handles Aug 3, 2024
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