isContainedBy method

bool isContainedBy(
  1. GraphObject panel
)

This predicate is true if this object is an element, perhaps indirectly, of the given panel.

For example, if this GraphObject is inside a Part but is not itself the Part, obj.isContainedBy(obj.part) should be true. @param {GraphObject} panel @return {boolean} true if this object is contained by the given panel, or if it is contained by another panel that is contained by the given panel, to any depth; false if the argument is null or is not a Panel.

Implementation

_i2.bool isContainedBy(_i3.GraphObject panel) => _i4.callMethod(
      this,
      'isContainedBy',
      [panel],
    );