-
Notifications
You must be signed in to change notification settings - Fork 2
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
A slice with a midstick on top of it has a background #1
Comments
Hi @SekoiaTree , The reason for it being non-transparent is so that the underlying wires are overdrawn. To illustrate, let's add some wires: Initially, I spent a lot of effort to allow transparent gates and everything but it turned out very tricky with many special cases. It seemed better to not allow transparent gates. For gates, this seems okay to me but I have to admit that I did not think of your case with midstick. I see two solutions:
#let midstick(content, fill: none, label: none) = gate(content, draw-function: draw-functions.draw-unboxed-gate, label: label, fill: fill) and use it with
Thanks for pointing this out! |
I don't know hugely much of the internals, but can't you "just" have Edit: Ah, there's no concept of "on top of", so a gate can't know it's on top of a slice. |
Precisely. Just like similar packages in LaTeX, |
With 6ebf10, a |
A slice with a background color, combined with a midstick, will have an extra background color.
Minimal example:
Workaround: redefine draw-unboxed-gate and midstick.
The text was updated successfully, but these errors were encountered: