mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
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:
parent
5dae8c0515
commit
72d387254a
File diff suppressed because one or more lines are too long
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user