Skip to content

Commit

Permalink
Remove the existence check
Browse files Browse the repository at this point in the history
  • Loading branch information
CPatchane committed Jan 2, 2024
1 parent 467147b commit 49e6e3e
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/Context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 49e6e3e

Please sign in to comment.