🐛 Fix problem with shadow negative spread

This commit is contained in:
alonso.torres 2024-03-06 17:08:57 +01:00
parent 2031e513ed
commit 0db24dc7ec
2 changed files with 7 additions and 0 deletions

View file

@ -45,6 +45,12 @@
:in "SourceAlpha"
:result filter-id}])
(when (< spread 0)
[:feMorphology {:radius (- spread)
:operator "erode"
:in "SourceAlpha"
:result filter-id}])
[:feOffset {:dx offset-x :dy offset-y}]
[:feGaussianBlur {:stdDeviation (/ blur 2)}]
[:& color-matrix {:color color}]