From 3cd3e89679e7e32fc31a31ffcdcdb52b1ec5a1ac Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Mon, 30 Aug 2021 12:11:40 +0200 Subject: [PATCH] :bug: Fix problem with caps in thumbnails --- frontend/src/app/main/ui/shapes/attrs.cljs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/shapes/attrs.cljs b/frontend/src/app/main/ui/shapes/attrs.cljs index f347e9bb6..5185a17ed 100644 --- a/frontend/src/app/main/ui/shapes/attrs.cljs +++ b/frontend/src/app/main/ui/shapes/attrs.cljs @@ -133,13 +133,15 @@ (and (spec/stroke-caps-line (:stroke-cap-start shape)) (not= (:stroke-cap-start shape) (:stroke-cap-end 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 (spec/stroke-caps-line (:stroke-cap-end shape)) (not= (:stroke-cap-start shape) (:stroke-cap-end 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))) attrs)))