From 1bbcf67396536df6875b80488225fef754dff9c0 Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Thu, 24 Mar 2022 15:32:19 +0100 Subject: [PATCH] :bug: Fix paths with no fill --- frontend/src/app/main/ui/shapes/custom_stroke.cljs | 5 ++++- frontend/src/app/main/ui/workspace/viewport/utils.cljs | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/main/ui/shapes/custom_stroke.cljs b/frontend/src/app/main/ui/shapes/custom_stroke.cljs index c9f8d1f70..2c951ecdf 100644 --- a/frontend/src/app/main/ui/shapes/custom_stroke.cljs +++ b/frontend/src/app/main/ui/shapes/custom_stroke.cljs @@ -374,7 +374,10 @@ (cond-> (obj/merge! props fill-props) (some? style) - (obj/set! "style" style)))))) + (obj/set! "style" style))) + + :else + props))) (defn build-stroke-props [position child value render-id] (let [props (-> (obj/get child "props") diff --git a/frontend/src/app/main/ui/workspace/viewport/utils.cljs b/frontend/src/app/main/ui/workspace/viewport/utils.cljs index c87ba7c97..416077562 100644 --- a/frontend/src/app/main/ui/workspace/viewport/utils.cljs +++ b/frontend/src/app/main/ui/workspace/viewport/utils.cljs @@ -11,8 +11,7 @@ [app.common.geom.matrix :as gmt] [app.common.geom.point :as gpt] [app.main.ui.cursors :as cur] - [app.util.dom :as dom] - [cuerdas.core :as str])) + [app.util.dom :as dom])) (defn- text-corrected-transform "If we apply a scale directly to the texts it will show deformed so we need to create this