mirror of
https://github.com/penpot/penpot.git
synced 2025-01-10 08:50:57 -05:00
🐛 Fix problem with caps in thumbnails
This commit is contained in:
parent
c3be1c870d
commit
3cd3e89679
1 changed files with 4 additions and 2 deletions
|
@ -133,13 +133,15 @@
|
||||||
(and (spec/stroke-caps-line (:stroke-cap-start shape))
|
(and (spec/stroke-caps-line (:stroke-cap-start shape))
|
||||||
(not= (:stroke-cap-start shape) (:stroke-cap-end shape))))
|
(not= (:stroke-cap-start shape) (:stroke-cap-end shape))))
|
||||||
(not (#{:inner :outer} (:stroke-alignment shape))))
|
(not (#{:inner :outer} (:stroke-alignment shape))))
|
||||||
(assoc :markerStart (str "url(#marker-" render-id "-" (name (:stroke-cap-start shape))))
|
(assoc :markerStart
|
||||||
|
(str/format "url(#marker-%s-%s)" render-id (name (:stroke-cap-start shape))))
|
||||||
|
|
||||||
(and (or (spec/stroke-caps-marker (:stroke-cap-end shape))
|
(and (or (spec/stroke-caps-marker (:stroke-cap-end shape))
|
||||||
(and (spec/stroke-caps-line (:stroke-cap-end shape))
|
(and (spec/stroke-caps-line (:stroke-cap-end shape))
|
||||||
(not= (:stroke-cap-start shape) (:stroke-cap-end shape))))
|
(not= (:stroke-cap-start shape) (:stroke-cap-end shape))))
|
||||||
(not (#{:inner :outer} (:stroke-alignment shape))))
|
(not (#{:inner :outer} (:stroke-alignment shape))))
|
||||||
(assoc :markerEnd (str "url(#marker-" render-id "-" (name (:stroke-cap-end shape)))))]
|
(assoc :markerEnd
|
||||||
|
(str/format "url(#marker-%s-%s)" render-id (name (:stroke-cap-end shape)))))]
|
||||||
|
|
||||||
(obj/merge! attrs (clj->js stroke-attrs)))
|
(obj/merge! attrs (clj->js stroke-attrs)))
|
||||||
attrs)))
|
attrs)))
|
||||||
|
|
Loading…
Reference in a new issue