mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-08 00:10:59 +00:00
Update ellipse.class.js
This commit is contained in:
parent
66d6b633ba
commit
2dc5e298a3
1 changed files with 2 additions and 2 deletions
|
|
@ -155,12 +155,12 @@
|
|||
cy = parsedAttributes.top || 0;
|
||||
|
||||
if (!('left' in parsedAttributes)) {
|
||||
parsedAttributes.left=0;
|
||||
parsedAttributes.left = 0;
|
||||
}
|
||||
parsedAttributes.left -= (options.width / 2) || 0;
|
||||
|
||||
if (!('top' in parsedAttributes)) {
|
||||
parsedAttributes.top=0;
|
||||
parsedAttributes.top = 0;
|
||||
}
|
||||
parsedAttributes.top -= (options.height / 2) || 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue