How to draw items in order #1367
Answered
by
wcandillon
damsonFilipson
asked this question in
Q&A
-
Hi guys, i've got plenty of items to draw in one canvas. Is there any way to modify the order of drawing? By default one element is on top of another element and so on. What i need is to set some kind of 'zIndex' to specific element to show it on top. |
Beta Was this translation helpful? Give feedback.
Answered by
wcandillon
Apr 14, 2023
Replies: 1 comment
-
Currently you can return the components as an array and sort them. This is what I use as a workaround for this.
Things get tricky when you want to animate on the order, hopefully we will have a solution for this in the future. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
damsonFilipson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently you can return the components as an array and sort them. This is what I use as a workaround for this.
Things get tricky when you want to animate on the order, hopefully we will have a solution for this in the future.