fix readme

This commit is contained in:
Anton Lavrenov
2021-05-27 10:12:44 -05:00
parent e4436bace9
commit 3f2c2e5042
2 changed files with 5 additions and 11 deletions

View File

@@ -86,7 +86,7 @@ export class Layer extends Container<Group | Shape> {
/**
* get native canvas element
* @method
* @name Konva.Layer#getCanvas
* @name Konva.Layer#getNativeCanvasElement
*/
getNativeCanvasElement() {
return this.canvas._canvas;
@@ -263,7 +263,8 @@ export class Layer extends Container<Group | Shape> {
}
_setSmoothEnabled() {
this.getContext()._context.imageSmoothingEnabled = this.imageSmoothingEnabled();
this.getContext()._context.imageSmoothingEnabled =
this.imageSmoothingEnabled();
}
/**
* get/set width of layer. getter return width of stage. setter doing nothing.