hitTest Method

Summary

Performs hit-testing on this AnnSquareLineEnding.

Syntax
TypeScript
JavaScript
AnnSquareLineEnding.prototype.hitTest = function( 
   point, 
   hitTestBuffer, 
   lineStart, 
   lineEnd 
) 

Parameters

point

The LeadPointD to be tested.

hitTestBuffer

The threshold buffer value, in pixels.

lineStart

The LeadPointD that represents the starting point of the line to which the ending style is being added.

lineEnd

The LeadPointD that represents the ending point of the line to which the ending style is being added.

Return Value

true if the test point intersects with the ending style; otherwise, false.

Remarks

The lineStart and lineEnd points parameters represent the starting and ending points of the line.

If the object is a polyline object, then the parameters represent the starting and ending points of either the last or first line segment in the polyline (based on whether the ending style location is at the start or at the end of the polyline).

Requirements

Target Platforms

Help Version 20.0.2019.10.14
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Engine Assembly