feat: moznost nahrat podklad cenovky aj ako PNG
This commit is contained in:
1 parent
317a42aaa7
commit
ad99aee117
2 files changed
+51
-20
No files matched your search
@@ -110,7 +110,7 @@ export function renderCleanBadgeSvg(
|
||||
return `<text x="${layer.x}" y="${layer.y}" text-anchor="${anchor}" dominant-baseline="central" font-family="${fontFamily}" font-size="${fontSize}px" font-weight="${fontWeight}" fill="${fill}">${contentSvg}</text>`;
|
||||
}).join('\n ');
|
||||
|
||||
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${vb}" width="${displayWidth}" height="${displayHeight}" style="display:block;max-width:100%;height:auto;">
|
||||
return `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="${vb}" width="${displayWidth}" height="${displayHeight}" style="display:block;max-width:100%;height:auto;">
|
||||
${innerBg}
|
||||
${textLayersSvg}
|
||||
</svg>`;
|
||||
|
||||
Reference in new issue
Block a user