paintBounds property

DiagramRect get paintBounds

Shared paint clip: overflow expands horizontally, retaining vertical limits.

Implementation

DiagramRect get paintBounds => overflow
    ? DiagramRect.fromLTWH(
        bounds.left < regionBounds.left ? bounds.left : regionBounds.left,
        regionBounds.top,
        (bounds.right > regionBounds.right
                ? bounds.right
                : regionBounds.right) -
            (bounds.left < regionBounds.left
                ? bounds.left
                : regionBounds.left),
        regionBounds.height,
      )
    : regionBounds;