0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-26 16:56:11 -05:00

Fix some issues in rendering groups in view app.

This commit is contained in:
Andrey Antukh 2016-08-30 19:19:20 +03:00
parent dffab9a482
commit 063e82c4a9
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -59,15 +59,17 @@
;; --- Shapes ;; --- Shapes
(declare shape)
(mx/defc shape* (mx/defc shape*
[{:keys [type] :as shape}] [{:keys [type] :as item}]
(case type (case type
:group (group-shape shape #(interactions-wrapper % shape*)) :group (group-shape item shape)
:text (text-shape shape) :text (text-shape item)
:icon (icon-shape shape) :icon (icon-shape item)
:rect (rect-shape shape) :rect (rect-shape item)
:path (path-shape shape) :path (path-shape item)
:circle (circle-shape shape))) :circle (circle-shape item)))
(mx/defc shape (mx/defc shape
[sid] [sid]