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