diff --git a/src/render/canvas/canvas-renderer.ts b/src/render/canvas/canvas-renderer.ts index 12d2a60..2c4ded1 100644 --- a/src/render/canvas/canvas-renderer.ts +++ b/src/render/canvas/canvas-renderer.ts @@ -628,7 +628,7 @@ export class CanvasRenderer extends Renderer { const y = getAbsoluteValue(position[position.length - 1], height); const [rx, ry] = calculateRadius(backgroundImage, x, y, width, height); - if (rx > 0 && rx > 0) { + if (rx > 0 && ry > 0) { const radialGradient = this.ctx.createRadialGradient(left + x, top + y, 0, left + x, top + y, rx); processColorStops(backgroundImage.stops, rx * 2).forEach((colorStop) =>