findPartAt method

Part? findPartAt(
  1. Point p, [
  2. bool? selectable
])

This convenience function finds the front-most Part that is at a given point that might be selectable and that is not in a temporary layer.

This just calls #findObjectAt with appropriate arguments, but ignoring Layers that are Layer#isTemporary. @param {Point} p a Point in document coordinates. @param {boolean=} selectable Whether to only consider parts that are Part#selectable. The default is true. @return {Part} @see #findObjectAt @see #findObjectsAt @see #findObjectsIn @see #findObjectsNear @see #findPartsAt @see #findPartsIn @see #findPartsNear

Implementation

_i3.Part? findPartAt(
  _i3.Point p, [
  _i2.bool? selectable,
]) =>
    _i4.callMethod(
      this,
      'findPartAt',
      [
        p,
        selectable ?? _i5.undefined,
      ],
    );