MDL-65840 qtype_ddmarker: coordinates of cirle shape

The coordinates of a circle shape are not allowed to be smaller than its radius.
By default, set the coordinates to be the same as the radius.
This commit is contained in:
M Kassaei 2019-06-07 14:02:10 +01:00
parent 5dae8c0515
commit 72d387254a
2 changed files with 3 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -234,6 +234,8 @@ define(function() {
* @constructor
*/
function Circle(label, x, y, radius) {
x = x || 15;
y = y || 15;
Shape.call(this, label, x, y);
this.radius = radius || 15;
}