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 22.0.2023.1.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Engine Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.