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

snap to pattern and document grid #873

Merged
merged 12 commits into from
Nov 11, 2023
Merged

snap to pattern and document grid #873

merged 12 commits into from
Nov 11, 2023

Conversation

flxzt
Copy link
Owner

@flxzt flxzt commented Nov 11, 2023

This PR adds the ability to snap to the pattern grid and the document format grid while using various different tools:

  • translating the selection
  • using the vertical space tool
  • translating text while using the typewriter

This also makes it a lot easier to align imported documents and pictures to the document, it should improve the pdf annotation use case (#153). In order to not export (almost) empty pages because aligned content overlaps just slightly due to inaccuracies from using floating point numbers, the method for generating page bounds was adjusted, now checking if content intersects above a certain tolerance (set to 1e-4).

@flxzt flxzt changed the title ability to snap to grid and document ability to snap to pattern and document grid Nov 11, 2023
@flxzt flxzt changed the title ability to snap to pattern and document grid snap to pattern and document grid Nov 11, 2023
@flxzt flxzt merged commit 220875b into main Nov 11, 2023
1 check passed
@flxzt flxzt deleted the snap-to-grid branch November 11, 2023 21:00
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.

None yet

1 participant