From 063e82c4a9733d0ac62bf1ec801fb4e372443e24 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 30 Aug 2016 19:19:20 +0300 Subject: [PATCH] Fix some issues in rendering groups in view app. --- src/uxbox/view/ui/viewer/shapes.cljs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/uxbox/view/ui/viewer/shapes.cljs b/src/uxbox/view/ui/viewer/shapes.cljs index d8c3cfbb6..93dbb6ac4 100644 --- a/src/uxbox/view/ui/viewer/shapes.cljs +++ b/src/uxbox/view/ui/viewer/shapes.cljs @@ -59,15 +59,17 @@ ;; --- Shapes +(declare shape) + (mx/defc shape* - [{:keys [type] :as shape}] + [{:keys [type] :as item}] (case type - :group (group-shape shape #(interactions-wrapper % shape*)) - :text (text-shape shape) - :icon (icon-shape shape) - :rect (rect-shape shape) - :path (path-shape shape) - :circle (circle-shape shape))) + :group (group-shape item shape) + :text (text-shape item) + :icon (icon-shape item) + :rect (rect-shape item) + :path (path-shape item) + :circle (circle-shape item))) (mx/defc shape [sid]