mirror of
https://github.com/penpot/penpot.git
synced 2026-09-07 04:29:31 +00:00
Merge pull request #4292 from penpot/azazeln28-fix-imposters-with-strokes
🐛 Fix imposters rendering with strokes
This commit is contained in:
commit
ebb02f28be
@ -625,7 +625,7 @@
|
|||||||
(if (some? shape)
|
(if (some? shape)
|
||||||
(let [fonts (ff/shape->fonts shape objects)
|
(let [fonts (ff/shape->fonts shape objects)
|
||||||
|
|
||||||
bounds (gsb/get-object-bounds objects shape)
|
bounds (gsb/get-object-bounds objects shape {:ignore-margin? false})
|
||||||
|
|
||||||
background (when (str/ends-with? object-id "component")
|
background (when (str/ends-with? object-id "component")
|
||||||
(or (:background options) (dom/get-css-variable "--assets-component-background-color") "#fff"))
|
(or (:background options) (dom/get-css-variable "--assets-component-background-color") "#fff"))
|
||||||
|
|||||||
@ -130,7 +130,7 @@
|
|||||||
container-ref (mf/use-ref nil)
|
container-ref (mf/use-ref nil)
|
||||||
content-ref (mf/use-ref nil)
|
content-ref (mf/use-ref nil)
|
||||||
|
|
||||||
bounds (gsb/get-object-bounds objects shape)
|
bounds (gsb/get-object-bounds objects shape {:ignore-margin? false})
|
||||||
|
|
||||||
x (dm/get-prop bounds :x)
|
x (dm/get-prop bounds :x)
|
||||||
y (dm/get-prop bounds :y)
|
y (dm/get-prop bounds :y)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user