minimumSizeFor method

  1. @override
DiagramSize minimumSizeFor(
  1. FramedElement shape,
  2. Map<String, double> textHeights
)
override

Implementation

@override
DiagramSize minimumSizeFor(
  FramedElement shape,
  Map<String, double> textHeights,
) => DiagramSize(
  children
      .map((c) => c.minimumSizeFor(shape, textHeights).width)
      .reduce(math.max),
  children
      .map((c) => c.minimumSizeFor(shape, textHeights).height)
      .reduce(math.max),
);