DiagramParagraphCacheKey constructor

DiagramParagraphCacheKey(
  1. TextParagraph block,
  2. DiagramTextRegionLayout region,
  3. double availableWidth
)

Implementation

DiagramParagraphCacheKey(
  TextParagraph block,
  DiagramTextRegionLayout region,
  double availableWidth,
) : runs = block.runs,
    role = block.role,
    alignment = block.alignment,
    direction = block.direction,
    foreground = region.foreground,
    defaultFontSize = region.defaultFontSize,
    width = availableWidth,
    wrap = region.wrapText,
    singleLine = region.singleLine;