Merge pull request #5639 from penpot/superalex-fix-shadows-order

🐛 Fix shadows order
This commit is contained in:
Andrey Antukh 2025-01-22 17:41:33 +01:00 committed by GitHub
commit 361644b62c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 17 additions and 3 deletions

View file

@ -161,7 +161,8 @@
(mf/defc filters
[{:keys [filter-id shape]}]
(let [filters (-> shape gsb/shape->filters change-filter-in)
(let [shape' (update shape :shadow reverse)
filters (-> shape' gsb/shape->filters change-filter-in)
bounds (gsb/get-rect-filter-bounds (:selrect shape) filters (or (-> shape :blur :value) 0))
padding (gsb/calculate-padding shape)
selrect (:selrect shape)