SakiKawasaki 5 rokov pred
rodič
commit
e84bcba967
4 zmenil súbory, kde vykonal 7 pridanie a 6 odobranie
  1. 2 1
      badgemaker/badgemaker.nim
  2. BIN
      tests/test7.exe
  3. 1 1
      tests/test7.nim
  4. 4 4
      tests/test7.svg

+ 2 - 1
badgemaker/badgemaker.nim

@@ -122,7 +122,8 @@ proc write*(badge: BadgeRef, filename: string) =
 
   text.add newXMLTree(
     "text", [], {
-      "x": $(image_width + 2), "y": $(badge.height/2 + 5), "fill": badge.label_text_color
+      "x": $(image_width + 2 + parseInt(radius)),
+      "y": $(badge.height/2 + 5), "fill": badge.label_text_color
     }.toXMLAttributes
   )
   text[0].add newText badge.label

BIN
tests/test7.exe


+ 1 - 1
tests/test7.nim

@@ -2,7 +2,7 @@
 import badgemaker
 
 var badge = newBadge(
-  label=" Programming language:", value="Nim",
+  label="Programming language:", value="Nim",
   label_color="#282A36", value_color="fuchsia",
   label_text_color="#e0e0e0", value_text_color="#333",
   width=220, style="plastic"

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 4 - 4
tests/test7.svg


Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov