Package | com.yworks.canvas.drawing |
Interface | public interface IHitTestable |
Implementors | AbstractStyleRenderer, BoolHitTestable, DefaultPortCandidateDescriptor, PointSelectionPaintable, ShapePaintable |
See also
Method | Defined By | ||
---|---|---|---|
isHit(x:Number, y:Number, ctx:ICanvasContext):Boolean
Determines if something has been hit at the given coordinates
in the world coordinate system. | IHitTestable |
isHit | () | method |
public function isHit(x:Number, y:Number, ctx:ICanvasContext):Boolean
Determines if something has been hit at the given coordinates in the world coordinate system.
Parameters
x:Number — the x-coordinate in world coordinate system
| |
y:Number — the y-coordinate in world coordinate system
| |
ctx:ICanvasContext — the context the hit test is performed in
|
Boolean — whether something has been hit
|