canScrollToPart method

bool canScrollToPart([
  1. Part? part
])

This predicate controls whether or not the user can invoke the #scrollToPart command. This returns false if there is no argument Part and there are no selected Parts.

This method may be overridden, but you should consider calling this base method in order to get all of its functionality. This method must not have any side-effects. Please read the Introduction page on Extensions for how to override methods and how to call this base method. @expose @param {Part=} part This defaults to the first selected Part of Diagram#selection @return {boolean} This returns true if Diagram#allowHorizontalScroll and Diagram#allowVerticalScroll are true. @see #scrollToPart @since 1.6

Implementation

_i2.bool canScrollToPart([_i3.Part? part]) => _i4.callMethod(
      this,
      'canScrollToPart',
      [part ?? _i5.undefined],
    );