Gets the line at a certain geometrical position.

<void> LineCollection.getItemAtLocation(<number> x, <number> y, <RequestLineCallback> callback, [<ErrorCallback> errorCallback])

Parameters

Parameter Description
x Specifies the line's horizontal location in pixels with an origin at the top left corner of the corner.
y Specifies the line's vertical location in pixels with an origin at the top left corner of the corner.
callback Receives the line at a certain geometrical position.
errorCallback Optional. Is called when the operation failed with an error.