pickable property

bool pickable

Gets or sets whether methods such as #findObjectAt find any of the objects in this layer.

The default value is true. When this property is false, all of the "find..." methods will fail to find parts that are in this layer.

Note that setting pickable to false does not prevent users from selecting nodes. It does prevent them from selecting nodes by clicking on them, but does not prevent selection through other mechanisms such as the DragSelectingTool or CommandHandler#selectAll or calls to Diagram#select.

You can control whether individual GraphObjects are "hittable" by setting GraphObject#pickable.

Implementation

_i2.bool get pickable => _i4.getProperty(
      this,
      'pickable',
    );
void pickable=(bool value)

Implementation

set pickable(_i2.bool value) {
  _i4.setProperty(
    this,
    'pickable',
    value,
  );
}