| 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):BooleanDetermines if something has been hit at the given coordinates in the world coordinate system.
Parametersx: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
|