Merge pull request #1873 from penpot/superalex-import-svg-with-exterior-strokes

🐛  Import svg with exterior strokes
This commit is contained in:
Pablo Alba 2022-05-11 09:23:40 +02:00 committed by GitHub
commit 77e9b8aa70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 15 deletions

View file

@ -189,7 +189,7 @@
(defn get-object-bounds
[objects object-id]
(let [object (get objects object-id)
padding (filters/calculate-padding object)
padding (filters/calculate-padding object true)
bounds (-> (filters/get-filters-bounds object)
(update :x - (:horizontal padding))
(update :y - (:vertical padding))