davidhatten / geometric-drawer

A little single-page javascript app to generate simple geometries and mandalas
0 stars 0 forks source link

add layers #46

Closed davidhatten closed 6 years ago

davidhatten commented 6 years ago

Allow the petals to have z layers

davidhatten commented 6 years ago

So SVG doesn't have z layers, rendering is based on ordering in the canvas.

Knowing that, we can actually play with the UX. You might be able to grab a layer and move it to between two other layers. Or just arrows, but fuck that, drag and drop is fun and engaging

davidhatten commented 6 years ago

After looking around a bit, here's the drag and drop library that does things in the React pattern of higher order components

https://github.com/react-dnd/react-dnd

History and HistoryRow become components that are wrapped in these drag and drop components

davidhatten commented 6 years ago

Added in 1.5.0