mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
parent
4dd4a69c7a
commit
809476ff7b
@ -121,8 +121,12 @@ export class CanvasRenderer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
popEffect() {
|
popEffect() {
|
||||||
|
const globalAlpha = this.ctx.globalAlpha;
|
||||||
this._activeEffects.pop();
|
this._activeEffects.pop();
|
||||||
this.ctx.restore();
|
this.ctx.restore();
|
||||||
|
if (globalAlpha) {
|
||||||
|
this.ctx.globalAlpha = globalAlpha;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async renderStack(stack: StackingContext) {
|
async renderStack(stack: StackingContext) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user