shapeBoundingBox property

  1. @override
PRectangle get shapeBoundingBox
override

Implementation

@override
PRectangle get shapeBoundingBox {
  var ps = _paths
      .map((e) => e.shapeBoundingBox)
      .expand((r) => [Point(r.x, r.y), Point(r.x + r.width, r.y + r.height)])
      .toList();

  var boundingBox = ps.boundingBox ?? (throw StateError("Empty `_paths`"));
  return boundingBox;
}