snapSelectedToObjects method

bool snapSelectedToObjects({
  1. double? threshold,
})

Snaps selected objects to nearby visible object edges or centers.

Implementation

bool snapSelectedToObjects({double? threshold}) {
  if (_selectedObjectIds.isEmpty) return false;
  final delta = _objectSnapDelta(threshold ?? snapThreshold);
  if (delta == null) return false;
  return moveSelectedBy(delta.$1, delta.$2);
}