mirror of
https://github.com/penpot/penpot.git
synced 2025-07-31 23:41:17 +02:00
🐛 Fix outline corner radius
This commit is contained in:
parent
e0441bc16a
commit
2dbeda1d8f
1 changed files with 5 additions and 5 deletions
|
@ -35,11 +35,11 @@
|
||||||
(or (ex/ignoring (upf/format-path (:content shape)))
|
(or (ex/ignoring (upf/format-path (:content shape)))
|
||||||
"")))
|
"")))
|
||||||
|
|
||||||
{:keys [x y width height selrect rx ry]} shape
|
{:keys [x y width height selrect]} shape
|
||||||
|
|
||||||
border-radius-attrs (.-d (attrs/extract-border-radius shape))
|
border-radius-attrs (attrs/extract-border-radius shape)
|
||||||
|
|
||||||
path? (some? border-radius-attrs)
|
path? (some? (.-d border-radius-attrs))
|
||||||
|
|
||||||
outline-type (case (:type shape)
|
outline-type (case (:type shape)
|
||||||
:circle "ellipse"
|
:circle "ellipse"
|
||||||
|
@ -67,8 +67,8 @@
|
||||||
:y (:y selrect)
|
:y (:y selrect)
|
||||||
:width (:width selrect)
|
:width (:width selrect)
|
||||||
:height (:height selrect)
|
:height (:height selrect)
|
||||||
:rx rx
|
:rx (.-rx border-radius-attrs)
|
||||||
:ry ry
|
:ry (.-ry border-radius-attrs)
|
||||||
:d border-radius-attrs})]
|
:d border-radius-attrs})]
|
||||||
|
|
||||||
[:> outline-type (map->obj (merge common props))]))
|
[:> outline-type (map->obj (merge common props))]))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue