Merge pull request #616 from ajspera/clear-type-fix

Fix: layer clear bounds should be optional
This commit is contained in:
Anton Lavrenov
2019-03-21 19:37:11 -05:00
committed by GitHub

View File

@@ -181,7 +181,7 @@ export class Layer extends BaseLayer {
Container.prototype.drawHit.call(this, canvas, top);
return this;
}
clear(bounds) {
clear(bounds?) {
BaseLayer.prototype.clear.call(this, bounds);
this.getHitCanvas()
.getContext()