measureBlock method
List<DiagramMeasuredTextLine>
measureBlock(
- TextParagraph block,
- DiagramTextRegionLayout region,
- double availableWidth
override
Shapes every block into at least one finite, positive-height visual line, including an empty block. Offsets remain relative to canonical block text. The same line metrics drive placement, carets, selection and owner growth.
Implementation
@override
List<DiagramMeasuredTextLine> measureBlock(
TextParagraph block,
DiagramTextRegionLayout region,
double availableWidth,
) => _cache.resolve(
DiagramParagraphCacheKey(block, region, availableWidth),
() => _shapeBlock(block, region, availableWidth),
);