findObjectAt<T extends GraphObject> method
Find the front-most GraphObject in this layer at the given point in document coordinates.
If #visible is false, this method will not find any objects in this layer. However, #opacity does not affect this method. @param {Point} p A Point in document coordinates. @param {function(GraphObject):GraphObject | null=} navig A function taking a GraphObject and returning a GraphObject, defaulting to the identity. @param {function(GraphObject):boolean | null=} pred A function taking the GraphObject returned by navig and returning true if that object should be returned, defaulting to a predicate that always returns true. @return {GraphObject} The first GraphObject in the Z-order, or else null.
Implementation
T? findObjectAt<T extends _i3.GraphObject>(
_i3.Point p, [
T? Function(_i3.GraphObject)? navig,
_i2.bool Function(T)? pred,
]) =>
_i4.callMethod(
this,
'findObjectAt',
[
p,
navig == null
? _i5.undefined
: _i4.allowInterop((p0) => () => navig(p0) ?? _i5.undefined),
pred == null ? _i5.undefined : _i4.allowInterop(pred),
],
);