ElektraInitiative / PermaplanT

https://www.permaplant.net
BSD 3-Clause "New" or "Revised" License
16 stars 13 forks source link

Drawing Layer: Order of Elements #1338

Open danielsteinkogler opened 6 months ago

danielsteinkogler commented 6 months ago

Newly drawn shapes should always be on top; currently, rectangles, for example, are drawn below ellipses.

To achieve this the order of the shapes in the html has to be changes. Currently first all bezier lines are drawn, then all free lines aso. This should be changed that it is iterated over all shapes and inside the loop we have to check the type of the shape and render the correct shape.

horenso commented 6 months ago

Should we save the order to the database? What about recently edited drawings?