Properly render image shapes on viewer.

This commit is contained in:
Andrey Antukh
2017-01-30 17:51:58 +01:00
parent 31b784f046
commit 0d46c5bac7

View File

@@ -18,7 +18,7 @@
[uxbox.main.ui.shapes.group :refer [group-shape]]
[uxbox.main.ui.shapes.path :refer [path-shape]]
[uxbox.main.ui.shapes.circle :refer [circle-shape]]
[uxbox.main.ui.shapes.image :refer [image-shape image-ref]]
[uxbox.main.ui.shapes.image :refer [image-shape]]
[uxbox.util.mixins :as mx :include-macros true])
(:import goog.events.EventType))
@@ -26,6 +26,11 @@
(-> (comp (l/key :flags) (l/lens :interactions))
(l/derive st/state)))
(defn image-ref
[id]
(-> (l/in [:images id])
(l/derive st/state)))
;; --- Interactions Wrapper
(defn- interactions-wrapper-did-mount