Move paragraphSpanBounds to the correct module.
Fix style: white space in exports and imports.
Implement splitting ParagraphLayout into lines.
Separate module for the ParagraphLayout type.