Clear this.canvas_ whenever render() is called

This commit is contained in:
mike-000
2020-09-01 09:27:17 +01:00
committed by GitHub
parent 2dd59b3536
commit 0807b44722

View File

@@ -404,6 +404,7 @@ class RegularShape extends ImageStyle {
this.draw_(renderOptions, context, 0, 0, 1); this.draw_(renderOptions, context, 0, 0, 1);
this.canvas_ = {};
this.canvas_[1] = context.canvas; this.canvas_[1] = context.canvas;
// canvas.width and height are rounded to the closest integer // canvas.width and height are rounded to the closest integer