mirror of
https://github.com/konvajs/konva.git
synced 2025-12-26 22:55:44 +08:00
removed Circle shape and replaced it with the more flexible Ellipse shape. If you define the radius with a number, the shape will be a circle. if you define the radius with an x and y component, it will be an oval
This commit is contained in:
@@ -321,6 +321,10 @@ Kinetic.Shape.prototype = {
|
||||
},
|
||||
/**
|
||||
* determines if point is in the shape
|
||||
* @param {Object|Array} point point can be an object containing
|
||||
* an x and y property, or it can be an array with two elements
|
||||
* in which the first element is the x component and the second
|
||||
* element is the y component
|
||||
*/
|
||||
intersects: function() {
|
||||
var pos = Kinetic.GlobalObject._getXY(arguments);
|
||||
|
||||
Reference in New Issue
Block a user