test suit updated

This commit is contained in:
2026-07-17 14:08:00 +02:00
parent 729b7f566f
commit d73aa076ad
10 changed files with 624 additions and 73 deletions
+3
View File
@@ -47,6 +47,9 @@ router.get('/badge', async (req, res) => {
const textPadding = Math.round(iconSize * 0.4);
const radius = style === 'flat' ? 3 : 0;
const textWidth = estimateTextWidth(effectiveLabel, fontSize);
// Kinyerjük az ikon SVG-ből a width és height attribútumokat (ha vannak)
let iconViewBoxWidth = iconSize;
let iconViewBoxHeight = iconSize;
const widthMatch = iconSVG.match(/width="(\d+\.?\d*)"/);
const heightMatch = iconSVG.match(/height="(\d+\.?\d*)"/);