@@ -174,7 +174,9 @@ function generateCustomGradients(params: BadgeParams, bgHex: string): string {
174174 // Create a deterministic gradient ID based on the color stops and direction
175175 // This ensures consistent output and avoids random/duplicate IDs
176176 const gradientSignature = `${ stops . join ( '-' ) } -${ params . gradient_dir || 'vertical' } ` ;
177- const gradientId = `custom-grad-${ deterministicRandom ( gradientSignature ) . toString ( ) . slice ( 2 , 10 ) } ` ;
177+ const gradientId = `custom-grad-${ deterministicRandom ( gradientSignature )
178+ . toString ( )
179+ . slice ( 2 , 10 ) } `;
178180
179181 let gradients = '' ;
180182
@@ -259,7 +261,9 @@ function renderDefs(sf: number, params: BadgeParams): string {
259261
260262 const filterGlow =
261263 params . glow !== false
262- ? `<filter id="glow" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="${ fs ( 5 ) } " result="blur" /><feComposite in="SourceGraphic" in2="blur" operator="over" /></filter>`
264+ ? `<filter id="glow" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="${ fs (
265+ 5
266+ ) } " result="blur" /><feComposite in="SourceGraphic" in2="blur" operator="over" /></filter>`
263267 : '' ;
264268
265269 return `<defs>
@@ -402,7 +406,9 @@ function renderTowers(
402406 if ( ! isGhost && t . intensityLevel > 0 && params . gradient === true ) {
403407 // Use custom gradient ID if available, otherwise use default gradient ID
404408 const customGradId = ( params as any ) . __customGradientId ;
405- const gradId = customGradId ? `${ customGradId } -level-${ t . intensityLevel } ` : `tower-grad-level-${ t . intensityLevel } ` ;
409+ const gradId = customGradId
410+ ? `${ customGradId } -level-${ t . intensityLevel } `
411+ : `tower-grad-level-${ t . intensityLevel } ` ;
406412
407413 leftFillAttr = `fill="url(#${ gradId } )"` ;
408414 rightFillAttr = `fill="url(#${ gradId } )"` ;
0 commit comments