-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Rework Plot Axes #479
Rework Plot Axes #479
Conversation
b51873c
to
669fc82
Compare
8877540
to
eb68e4e
Compare
d1d91a3
to
a850be9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you happy with the state of axes.typ
? I haven't focused on it as I don't mind but I can take a closer look/be more picky if you want.
Are you going to fix the docs in this PR?
UPdate the changelog!
No, I am not yet happy but would like to do further changes later. |
db42490
to
f9df042
Compare
f9df042
to
bb836c8
Compare
Allows passing `none` or `ctx => {}` to grouping functions (`group`, `on-layer`, ...). This is very useful when having conditional draw commands insides a group. Example: ``` group(ctx => { if .. { // If this does not get evaluated, cetz currently fails because the group returned `none`. // Current workaround is writing () at the end of such groups to auto-join an empty array. } }) ``` This PR is an improved implementation of the one rejected from #479.
bb836c8
to
bb8aa8c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure to rebase this first, as resolve-body
is still in grouping.typ
fde49a9
to
3b1b913
Compare
3b1b913
to
905b603
Compare
Some cleanup of the axis drawing code. More refactoring should follow, but in a follow-up PR.
Axis styling documentation is not good yet!
New features:
I am not happy with the shared "0" tick drawing, this should get improved!