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 * @method
* @name Konva.Context#roundRect * @name Konva.Context#roundRect
*/ */
roundRect(x: number, y: number, width: number, height: number, radii: number) { roundRect(
if (this._context.roundRect) { x: number,
this._context.roundRect(x, y, width, height, radii); y: number,
} else { width: number,
this._context.rect(x, y, width, height); height: number,
} radii: number
) {
this._context.roundRect(x, y, width, height, radii);
} }
/** /**
* putImageData function. * putImageData function.