Is there a prawn equivalent of z-index? #1291
Answered
by
pointlessone
watsonchang15
asked this question in
General
|
Hello! Wondering, is there a prawn way for ordering elements to the front or back? I'm trying to draw a line but it gets rendered behind an existing element. I would like it to be in front by default. Oddly enough, the line shows up sometimes depending on the PDF application. It shows in adobe acrobat but not in preview (the OSX app). Thanks all. |
Answered by
pointlessone
Feb 16, 2023
Replies: 2 comments
|
No, there's no analogue of CSS z-index or depth buffer. You have to pre-sort your drawing operations yourself. First draws are the "farthest". In order to get your line on top of everything else it has to be drawn last. |
0 replies
Answer selected by
watsonchang15
|
Got it, thank you 🙏 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, there's no analogue of CSS z-index or depth buffer. You have to pre-sort your drawing operations yourself. First draws are the "farthest". In order to get your line on top of everything else it has to be drawn last.