Comparing version 2.1.3 to 2.1.4
@@ -11,3 +11,3 @@ const calcWidth = require('./calc-text-width.js').Verdana11 | ||
const stTextWidth = calcWidth(status, emoji) | ||
const sbRectWidth = calcWidth(subject, emoji) + 10 + (icon ? 17 : 0) | ||
const sbRectWidth = calcWidth(subject, emoji) + 10 + (icon ? 15 : 0) | ||
const stRectWidth = stTextWidth + 10 | ||
@@ -24,4 +24,4 @@ const width = sbRectWidth + stRectWidth | ||
<g fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="11"> | ||
<text x="${icon ? '23.2' : '6'}" y="14.8" fill="#000" opacity="0.1">${subject}</text> | ||
<text x="${icon ? '22.2' : '5'}" y="13.8">${subject}</text> | ||
<text x="${icon ? '21.6' : '6'}" y="14.8" fill="#000" opacity="0.1">${subject}</text> | ||
<text x="${icon ? '20.6' : '5'}" y="13.8">${subject}</text> | ||
<text x="${sbRectWidth + 5.5}" y="14.8" fill="#000" opacity="0.1" textLength="${stTextWidth}">${status}</text> | ||
@@ -47,4 +47,4 @@ <text x="${sbRectWidth + 4.5}" y="13.8" textLength="${stTextWidth}">${status}</text> | ||
<g fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="11"> | ||
<text x="${icon ? '23.4' : '6.2'}" y="14.8" fill="#000" opacity="0.25">${subject}</text> | ||
<text x="${icon ? '22.4' : '5.2'}" y="13.8">${subject}</text> | ||
<text x="${icon ? '21.6' : '6'}" y="14.8" fill="#000" opacity="0.25">${subject}</text> | ||
<text x="${icon ? '20.6' : '5'}" y="13.8">${subject}</text> | ||
<text x="${sbRectWidth + 5.5}" y="14.8" fill="#000" opacity="0.25" textLength="${stTextWidth}">${status}</text> | ||
@@ -58,3 +58,3 @@ <text x="${sbRectWidth + 4.5}" y="13.8" textLength="${stTextWidth}">${status}</text> | ||
function genIconMarkup (iconB64) { | ||
return `<image x="4.8" y="3" width="14" height="14" xlink:href="${iconB64}"/>` | ||
return `<image x="3.8" y="3.4" width="13.2" height="13.2" xlink:href="${iconB64}"/>` | ||
} | ||
@@ -61,0 +61,0 @@ |
{ | ||
"name": "badgen", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"description": "Fast svg badge generator.", | ||
@@ -5,0 +5,0 @@ "repository": "amio/badgen", |
@@ -34,15 +34,15 @@ # badgen | ||
![](https://badgen.now.sh/badge/color/blue/blue) | ||
![](https://badgen.now.sh/badge/color/cyan/cyan) | ||
![](https://badgen.now.sh/badge/color/green/green) | ||
![](https://badgen.now.sh/badge/color/yellow/yellow) | ||
![](https://badgen.now.sh/badge/color/orange/orange) | ||
![](https://badgen.now.sh/badge/color/red/red) | ||
![](https://badgen.now.sh/badge/color/pink/pink) | ||
![](https://badgen.now.sh/badge/color/purple/purple) | ||
![](https://badgen.now.sh/badge/color/grey/grey) | ||
![](https://badgen.net/badge/color/blue/blue) | ||
![](https://badgen.net/badge/color/cyan/cyan) | ||
![](https://badgen.net/badge/color/green/green) | ||
![](https://badgen.net/badge/color/yellow/yellow) | ||
![](https://badgen.net/badge/color/orange/orange) | ||
![](https://badgen.net/badge/color/red/red) | ||
![](https://badgen.net/badge/color/pink/pink) | ||
![](https://badgen.net/badge/color/purple/purple) | ||
![](https://badgen.net/badge/color/grey/grey) | ||
### Badge Service | ||
### Badge As A Service | ||
https://badgen.now.sh/ | ||
https://badgen.net | ||
@@ -62,5 +62,5 @@ ## Benchmarks | ||
![ISC](https://badgen.now.sh/badge/license/ISC/blue) | ||
![ISC](https://badgen.net/badge/license/ISC/blue) | ||
[npm-badge]: https://badgen.now.sh/npm/v/badgen | ||
[npm-badge]: https://badgen.net/npm/v/badgen | ||
[npm-link]: https://www.npmjs.com/package/badgen | ||
@@ -67,0 +67,0 @@ [pp-badge]: https://packagephobia.now.sh/badge?p=badgen |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6929