Put grid on top of shapes.

This commit is contained in:
Andrey Antukh 2016-04-04 20:35:07 +03:00
parent c0bf28682c
commit cc7aef895e

View File

@ -63,15 +63,16 @@
:width width
:height height}
(background)
(when (contains? flags :grid)
(grid 1))
[:svg.page-layout {}
(shapes-selection)
[:g.main {}
(for [item (reverse (:shapes page))]
(-> (uus/shape item)
(rum/with-key (str item))))
(draw-area)]]])))
(draw-area)]]
(when (contains? flags :grid)
(grid 1))])))
(def canvas
(mx/component