Packagecom.yworks.canvas.drawing
Interfacepublic interface IHitTestable
Implementors AbstractStyleRenderer, BoolHitTestable, DefaultPortCandidateDescriptor, PointSelectionPaintable, ShapePaintable

Interface that is implemented for elements that can be hit or picked in a coordinate system.

See also

com.yworks.canvas.CanvasComponent.hitTestItem


Public Methods
 MethodDefined 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
Method Detail
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

Returns
Boolean — whether something has been hit