Remove the existence check

This commit is contained in:
CPatchane 2024-01-02 21:13:15 +01:00
parent 467147b4c7
commit 49e6e3e824

View File

@ -592,12 +592,14 @@ export class Context {
* @method
* @name Konva.Context#roundRect
*/
roundRect(x: number, y: number, width: number, height: number, radii: number) {
if (this._context.roundRect) {
this._context.roundRect(x, y, width, height, radii);
} else {
this._context.rect(x, y, width, height);
}
roundRect(
x: number,
y: number,
width: number,
height: number,
radii: number
) {
this._context.roundRect(x, y, width, height, radii);
}
/**
* putImageData function.