mirror of
https://github.com/penpot/penpot.git
synced 2026-05-03 23:29:03 +00:00
🐛 Fix problem with strokes and rects
This commit is contained in:
parent
21927fd54c
commit
9e6db257cc
@ -17,7 +17,7 @@
|
||||
(if (cfh/path-shape? shape)
|
||||
;; TODO: Calculate with the stroke offset (not implemented yet)
|
||||
(+ stroke-width (mth/sqrt (* 2 stroke-width stroke-width)))
|
||||
(- (mth/sqrt (* 2 stroke-width stroke-width)) stroke-width)))
|
||||
(mth/sqrt (* 2 stroke-width stroke-width))))
|
||||
|
||||
(defn- apply-filters
|
||||
[attr type filters]
|
||||
@ -153,6 +153,7 @@
|
||||
(get-object-bounds objects shape nil))
|
||||
([objects shape {:keys [ignore-margin?] :or {ignore-margin? true}}]
|
||||
(let [base-bounds (calculate-base-bounds shape ignore-margin?)
|
||||
_ (prn ">" (:name shape) base-bounds)
|
||||
bounds
|
||||
(cond
|
||||
(or (empty? (:shapes shape))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user