-
Notifications
You must be signed in to change notification settings - Fork 66
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
--center
option doesn't play well with --size
#140
Comments
Hi, thanks for reporting this. You're correct, stateDiagram-v2
state frame-size {
size
}
If Additionally, we could add an See also #115 (comment) and #84 (comment) for related comments/discussions. Sound good? |
Keeping the semantics of |
You should be able to get what you want with the new Please let me know if you find any issues! |
I use Chafa for rendering previews of files within other programs, which makes the
--size
option super useful. Since I'm rendering to a statically-sized preview area, it would be nice to have these previews centered. I thought the--center
option would solve this, but it doesn't seem to take the--size
option into account.Instead, it's adding a left offset based on the detected width of the terminal, not the width given through
--size
. Inlf
, where the preview takes 1/2 the screen width, this results in a preview that's cut off:Additionally, it would be nice if there was a vertical offset when
--size
and--center
are both provided so that the image would be vertically centered as well.The text was updated successfully, but these errors were encountered: