Example #1
0
 public BoxLayoutInfo(
     [NotNull] string shapeId,
     Point2D topLeft,
     Size2D headerSize,
     Size2D childrenAreaSize,
     GroupLayoutInfo childGroup = null)
 {
     ShapeId          = shapeId;
     TopLeft          = topLeft;
     HeaderSize       = headerSize;
     ChildrenAreaSize = childrenAreaSize;
     ChildGroup       = childGroup;
 }
Example #2
0
 private static Size2D CalculateSize([NotNull] IDiagramNode diagramNode, [CanBeNull] GroupLayoutInfo childrenArea)
 {
     return(Size2D.StackVertically(diagramNode.PayloadAreaSize, childrenArea?.Rect.Size ?? Size2D.Zero));
 }