diff --git a/Source/Shapes/RoundedRectangle.js b/Source/Shapes/RoundedRectangle.js index 20d0a1f..f00f4ba 100644 --- a/Source/Shapes/RoundedRectangle.js +++ b/Source/Shapes/RoundedRectangle.js @@ -48,6 +48,13 @@ var RoundedRectangle = LibCanvas.declare( return ctx; }, + + clone: function method () { + return method.previous + .apply(this, arguments) + .setRadius(this.radius); + }, + equals: function (shape, accuracy) { return Rectangle.prototype.equals.call( this, shape, accuracy ) && shape.radius == this.radius; }, diff --git a/libcanvas-full-compiled.js b/libcanvas-full-compiled.js index 7a4a928..d2c063d 100644 --- a/libcanvas-full-compiled.js +++ b/libcanvas-full-compiled.js @@ -6433,6 +6433,13 @@ var RoundedRectangle = LibCanvas.declare( return ctx; }, + + clone: function method () { + return method.previous + .apply(this, arguments) + .setRadius(this.radius); + }, + equals: function (shape, accuracy) { return Rectangle.prototype.equals.call( this, shape, accuracy ) && shape.radius == this.radius; },