selectionBoundsWorld property

Rect? get selectionBoundsWorld

Axis-aligned world bounds of the current transformable selection.

Returns null when no transformable, unlocked nodes are selected.

Implementation

Rect? get selectionBoundsWorld {
  final nodes = selectedTransformableNodesInSceneOrder(
    scene,
    _contracts.selectedNodeIds,
  ).where((node) => !node.isLocked).toList(growable: false);
  if (nodes.isEmpty) return null;
  return boundsWorldForNodes(nodes);
}