Minor refactor of workarea rules and grid.

This commit is contained in:
Andrey Antukh 2015-12-29 14:23:41 +02:00
parent c182340be4
commit f7b902a7ef
5 changed files with 98 additions and 75 deletions

View file

@ -13,7 +13,7 @@
[uxbox.ui.dom :as dom]
[uxbox.ui.util :as util]
[uxbox.ui.workspace.base :as wb]
[uxbox.ui.workspace.rules :as wr]
[uxbox.ui.workspace.grid :refer (grid)]
[uxbox.ui.workspace.toolboxes :as toolboxes]))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@ -147,6 +147,8 @@
(reset! wb/shapes-dragging? false))
}
(background)
(grid 1)
[:svg.page-layout {}
(for [shapeid (:shapes page)
:let [item (get-in page [:shapes-by-id shapeid])]]