labelInkCutouts property

List<DiagramRect> labelInkCutouts
latefinal

World-space cutouts in the connector body beneath nonempty label ink. Shared by canvas and vector output; markers remain outside this clipping.

Implementation

late final List<DiagramRect> labelInkCutouts = List.unmodifiable([
  for (final label in labels)
    if (label.source.story.plainText.isNotEmpty)
      for (final line in label.text.lines) line.contentBounds.inflate(3),
]);