mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
fix: don't apply text shadows on elements (#1795)
* Fix for Issue-1638 (https://github.com/niklasvh/html2canvas/issues/1638) Resolution: Clearing the Shadow Properties after they are consumed
This commit is contained in:

committed by
GitHub

parent
7027900f49
commit
397595afb5
@ -235,6 +235,11 @@ export default class CanvasRenderer implements RenderTarget<HTMLCanvasElement> {
|
||||
text.bounds.top + text.bounds.height
|
||||
);
|
||||
});
|
||||
|
||||
this.ctx.shadowColor = '';
|
||||
this.ctx.shadowOffsetX = 0;
|
||||
this.ctx.shadowOffsetY = 0;
|
||||
this.ctx.shadowBlur = 0;
|
||||
} else {
|
||||
this.ctx.fillText(
|
||||
text.text,
|
||||
|
Reference in New Issue
Block a user