🐛 Fix viewer

This commit is contained in:
Alejandro Alonso 2023-08-21 14:15:41 +02:00 committed by Andrey Antukh
parent 0ce838fbb6
commit 5ea9a52e69

View file

@ -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]