mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
format
This commit is contained in:
parent
0896c5f261
commit
2f567d4970
@ -624,7 +624,10 @@ export class CanvasRenderer extends Renderer {
|
|||||||
ctx.fillStyle = gradient;
|
ctx.fillStyle = gradient;
|
||||||
ctx.fillRect(0, 0, width, height);
|
ctx.fillRect(0, 0, width, height);
|
||||||
if (width > 0 && height > 0) {
|
if (width > 0 && height > 0) {
|
||||||
const pattern = this.ctx.createPattern(canvas, repeatTypes[+container.styles.backgroundRepeat]) as CanvasPattern;
|
const pattern = this.ctx.createPattern(
|
||||||
|
canvas,
|
||||||
|
repeatTypes[+container.styles.backgroundRepeat]
|
||||||
|
) as CanvasPattern;
|
||||||
this.renderRepeat(path, pattern, x, y);
|
this.renderRepeat(path, pattern, x, y);
|
||||||
}
|
}
|
||||||
} else if (isRadialGradient(backgroundImage)) {
|
} else if (isRadialGradient(backgroundImage)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user