mirror of
https://github.com/konvajs/konva.git
synced 2025-12-04 10:58:22 +08:00
bug fix: ellipse radius change no longer fires duplicate attr change event
This commit is contained in:
10
dist/kinetic-core.js
vendored
10
dist/kinetic-core.js
vendored
@@ -3433,10 +3433,12 @@ Kinetic.Ellipse.prototype = {
|
||||
if(go._isObject(radius)) {
|
||||
return false;
|
||||
}
|
||||
var pos = go._getXY(radius);
|
||||
this.setAttrs({
|
||||
radius: pos
|
||||
});
|
||||
|
||||
/*
|
||||
* directly set radius attr to avoid
|
||||
* duplicate attr change event
|
||||
*/
|
||||
this.attrs.radius = go._getXY(radius);
|
||||
}
|
||||
};
|
||||
// extend Shape
|
||||
|
||||
2
dist/kinetic-core.min.js
vendored
2
dist/kinetic-core.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user