From 875fd78f731ae89d1e63aeb8cd0c4faa2bf35979 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Mon, 18 Apr 2022 09:54:54 +0200 Subject: [PATCH] :bug: Fix rounding problem with texts --- frontend/src/app/main/ui/shapes/text/svg_text.cljs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/main/ui/shapes/text/svg_text.cljs b/frontend/src/app/main/ui/shapes/text/svg_text.cljs index f9849c9d0..c711caf2d 100644 --- a/frontend/src/app/main/ui/shapes/text/svg_text.cljs +++ b/frontend/src/app/main/ui/shapes/text/svg_text.cljs @@ -8,7 +8,6 @@ (:require [app.common.data :as d] [app.common.geom.shapes :as gsh] - [app.common.math :as mth] [app.config :as cfg] [app.main.ui.context :as muc] [app.main.ui.shapes.attrs :as attrs] @@ -52,12 +51,12 @@ [:> :g group-props (for [[index data] (d/enumerate position-data)] (let [y (if (cfg/check-browser? :safari) - (mth/round (- (:y data) (:height data))) - (mth/round (:y data))) + (- (:y data) (:height data)) + (:y data)) alignment-bl (when (cfg/check-browser? :safari) "text-before-edge") dominant-bl (when-not (cfg/check-browser? :safari) "ideographic") - props (-> #js {:x (mth/round (:x data)) + props (-> #js {:x (:x data) :y y :alignmentBaseline alignment-bl :dominantBaseline dominant-bl