- Fix: Detection of whether to keep ellipse (rx and ry when just created are now returning 0 instead of null); fixes #262
- Refactoring: Simplify `isValidUnit`
This commit is contained in:
@@ -2151,7 +2151,7 @@ const mouseUp = function (evt) {
|
||||
break;
|
||||
case 'ellipse':
|
||||
attrs = $(element).attr(['rx', 'ry']);
|
||||
keep = (attrs.rx != null || attrs.ry != null);
|
||||
keep = (attrs.rx || attrs.ry);
|
||||
break;
|
||||
case 'fhellipse':
|
||||
if ((freehand.maxx - freehand.minx) > 0 &&
|
||||
|
||||
Reference in New Issue
Block a user