mirror of
https://github.com/penpot/penpot.git
synced 2025-08-01 10:48:29 +02:00
🐛 Fix viewer
This commit is contained in:
parent
0ce838fbb6
commit
5ea9a52e69
1 changed files with 7 additions and 7 deletions
|
@ -468,13 +468,13 @@
|
||||||
(mf/with-memo [objects]
|
(mf/with-memo [objects]
|
||||||
(svg-raw-container-factory objects all-objects))]
|
(svg-raw-container-factory objects all-objects))]
|
||||||
(when (and shape (not (:hidden shape)))
|
(when (and shape (not (:hidden shape)))
|
||||||
(let [shape (-> shape
|
(let [shape (if frame
|
||||||
#_(gsh/transform-shape)
|
(gsh/translate-to-frame shape frame)
|
||||||
(gsh/translate-to-frame frame))
|
shape)
|
||||||
|
|
||||||
opts #js {:shape shape
|
opts #js {:shape shape
|
||||||
:objects objects
|
:objects objects
|
||||||
:all-objects all-objects}]
|
:all-objects all-objects}]
|
||||||
(case (:type shape)
|
(case (:type shape)
|
||||||
:frame [:> frame-container opts]
|
:frame [:> frame-container opts]
|
||||||
:text [:> text-wrapper opts]
|
:text [:> text-wrapper opts]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue