test suit updated
This commit is contained in:
@@ -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*)"/);
|
||||
|
||||
Reference in New Issue
Block a user