Skip to content

Commit

Permalink
fix(): renderCanvas
Browse files Browse the repository at this point in the history
`canvas#toCanvasElement` used to kill requested renders
  • Loading branch information
ShaMan123 committed Aug 30, 2022
1 parent c4d5532 commit b12491d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/static_canvas.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -754,10 +754,10 @@ import { pick } from './util/misc/pick';
}

var v = this.viewportTransform, path = this.clipPath;
this.cancelRequestedRender();
this.calcViewportBoundaries();
this.clearContext(ctx);
fabric.util.setImageSmoothing(ctx, this.imageSmoothingEnabled);
// node-canvas
ctx.patternQuality = 'best';
this.fire('before:render', { ctx: ctx, });
this._renderBackground(ctx);
Expand Down

0 comments on commit b12491d

Please sign in to comment.