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

Mark positioning #578

Closed
arkadiuszwojcik opened this issue May 2, 2024 · 1 comment · Fixed by #584
Closed

Mark positioning #578

arkadiuszwojcik opened this issue May 2, 2024 · 1 comment · Fixed by #584
Labels
enhancement ⬆️ New feature or request

Comments

@arkadiuszwojcik
Copy link

arkadiuszwojcik commented May 2, 2024

In currect CeTZ implementation when we place mark at point (x,y) it is tip of mark that will occupy that position. In case on marks that are large or long it creates some issues to center in properly in the middle of line, because in most cases we would like to position mark in such way that graphical center of mark will occupy (x,y). Image below. Top part represent current mark positioning behaviour, bottom part my tweaks to place mark relative to is graphical center. Second one (mark shifted by mark_width/2) seems more intuitive I think.

Screenshot 2024-05-02 095941

@Enivex
Copy link

Enivex commented May 2, 2024

This has frustrated me as well, though I don't know if I was just doing something wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ⬆️ New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants