HitResult objects are returned by Document#hitTest(point[, request[, tolerance]]) and Item#hitTest(point[, type[, tolerance]]). They represent the result of a hit test, which is reflected in the object's properties as described below.
The item which was hit.
Read-only.
The curve which was hit, if any.
The segment of the curve that was hit and that is closer to the hit point.
The index of the curve which was hit, if any.
The point which was hit.
Describes the type of the hit result.
For example, if you hit an anchor point, the type would be 'anchor'.
Copyright © 2001-2010 Jürg Lehni, Scratchdisk.com. All Rights Reserved.