0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 16:21:57 -05:00

🐛 Fix black background while drawing a path

This commit is contained in:
Alejandro Alonso 2022-04-21 13:31:19 +02:00
parent 08c6e9b702
commit c809890cfd

View file

@ -11,6 +11,7 @@
[app.common.math :as mth]
[app.main.ui.shapes.path :refer [path-shape]]
[app.main.ui.workspace.shapes :as shapes]
[app.main.ui.workspace.shapes.path.common :as pc]
[app.main.ui.workspace.shapes.path.editor :refer [path-editor]]
[rumext.alpha :as mf]))
@ -22,7 +23,8 @@
[:g.draw-area
[:g {:style {:pointer-events "none"}}
[:& shapes/shape-wrapper {:shape (gsh/transform-shape shape)}]]
[:& shapes/shape-wrapper {:shape (-> (gsh/transform-shape shape)
(assoc :fills [{:fill-color pc/white-color :fill-opacity 0}]))}]]
(case tool
:path [:& path-editor {:shape shape :zoom zoom}]