The drawBadge function inside src/lib/imageVariations.ts is responsible for drawing the badge (if-enabled) in the output-canvas. The background conicGradient is drawn in a arc behind the badge's text. Currently this fails for very long strings, probably due to the angle calculation being incorrect in these cases.
To fix this, you need to overhaul the calculation & drawing code inside the drawBadge function. The visual distances and gradient should stay the same, but it should work even for long strings.
