mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 07:29:08 -05:00
🐛 Fix problem with rotated blurs
This commit is contained in:
parent
d64dd29ca9
commit
5b25a42f32
2 changed files with 7 additions and 6 deletions
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
- Fix broken profile and profile options form.
|
- Fix broken profile and profile options form.
|
||||||
- Fix problem with mask and flip [#715](https://github.com/penpot/penpot/issues/715)
|
- Fix problem with mask and flip [#715](https://github.com/penpot/penpot/issues/715)
|
||||||
|
- Fix problem with rotated blur [Taiga #1370](https://tree.taiga.io/project/penpot/issue/1370)
|
||||||
|
|
||||||
### :heart: Community contributions by (Thank you!)
|
### :heart: Community contributions by (Thank you!)
|
||||||
|
|
||||||
|
|
|
@ -9,12 +9,13 @@
|
||||||
|
|
||||||
(ns app.main.ui.shapes.filters
|
(ns app.main.ui.shapes.filters
|
||||||
(:require
|
(:require
|
||||||
[rumext.alpha :as mf]
|
|
||||||
[cuerdas.core :as str]
|
|
||||||
[app.util.color :as color]
|
|
||||||
[app.common.data :as d]
|
[app.common.data :as d]
|
||||||
|
[app.common.geom.shapes :as gsh]
|
||||||
[app.common.math :as mth]
|
[app.common.math :as mth]
|
||||||
[app.common.uuid :as uuid]))
|
[app.common.uuid :as uuid]
|
||||||
|
[app.util.color :as color]
|
||||||
|
[cuerdas.core :as str]
|
||||||
|
[rumext.alpha :as mf]))
|
||||||
|
|
||||||
(defn get-filter-id []
|
(defn get-filter-id []
|
||||||
(str "filter_" (uuid/next)))
|
(str "filter_" (uuid/next)))
|
||||||
|
@ -137,7 +138,7 @@
|
||||||
(filter #(= :drop-shadow (:type %)))
|
(filter #(= :drop-shadow (:type %)))
|
||||||
(map (partial filter-bounds shape) ))
|
(map (partial filter-bounds shape) ))
|
||||||
;; We add the selrect so the minimum size will be the selrect
|
;; We add the selrect so the minimum size will be the selrect
|
||||||
filter-bounds (conj filter-bounds (:selrect shape))
|
filter-bounds (conj filter-bounds (-> shape :points gsh/points->selrect))
|
||||||
x1 (apply min (map :x1 filter-bounds))
|
x1 (apply min (map :x1 filter-bounds))
|
||||||
y1 (apply min (map :y1 filter-bounds))
|
y1 (apply min (map :y1 filter-bounds))
|
||||||
x2 (apply max (map :x2 filter-bounds))
|
x2 (apply max (map :x2 filter-bounds))
|
||||||
|
|
Loading…
Add table
Reference in a new issue