isGridSnapEnabled property

bool get isGridSnapEnabled

Whether or not the dragged parts snap to the Diagram#grid. By default this property is false.

In typical DraggingTool operation this is set via DraggingTool#isGridSnapEnabled.

Implementation

_i2.bool get isGridSnapEnabled => _i4.getProperty(
      this,
      'isGridSnapEnabled',
    );
set isGridSnapEnabled (bool value)

Implementation

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