mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 06:24:42 +08:00
Remove the existence check
This commit is contained in:
parent
467147b4c7
commit
49e6e3e824
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user