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:
parent
dffab9a482
commit
063e82c4a9
1 changed files with 9 additions and 7 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue