mirror of
https://github.com/penpot/penpot.git
synced 2026-09-08 21:19:49 +00:00
parent
ead9bd9ccc
commit
565ed042bc
@ -107,19 +107,19 @@
|
|||||||
props #js {:shape shape :thumbnail? thumbnail?}]
|
props #js {:shape shape :thumbnail? thumbnail?}]
|
||||||
(when (and (some? shape)
|
(when (and (some? shape)
|
||||||
(not ^boolean (:hidden shape)))
|
(not ^boolean (:hidden shape)))
|
||||||
[:> wrapper-elem wrapper-props
|
(mf/html
|
||||||
(case shape-type
|
[:> wrapper-elem wrapper-props
|
||||||
:path [:> path/path-wrapper* props]
|
(case shape-type
|
||||||
:text [:> text/text-wrapper props]
|
:path [:> path/path-wrapper* props]
|
||||||
:group [:> group-wrapper props]
|
:text [:> text/text-wrapper props]
|
||||||
:rect [:> rect-wrapper props]
|
:group [:> group-wrapper props]
|
||||||
:image [:> image-wrapper props]
|
:rect [:> rect-wrapper props]
|
||||||
:circle [:> circle-wrapper props]
|
:image [:> image-wrapper props]
|
||||||
:svg-raw [:> svg-raw-wrapper props]
|
:circle [:> circle-wrapper props]
|
||||||
:bool [:> bool-wrapper props]
|
:svg-raw [:> svg-raw-wrapper props]
|
||||||
:frame [:> nested-frame-wrapper props]
|
:bool [:> bool-wrapper props]
|
||||||
|
:frame [:> nested-frame-wrapper props]
|
||||||
nil)])))
|
nil)]))))
|
||||||
|
|
||||||
(mf/defc root-frame-shape-wrapper
|
(mf/defc root-frame-shape-wrapper
|
||||||
{::mf/wrap [#(mf/memo' % common/check-shape-props)]
|
{::mf/wrap [#(mf/memo' % common/check-shape-props)]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user