~jaro/balkon

232a08210cea94f3a4c794ad0ea43eb33aa80591 — Jaro 1 year, 4 months ago ce4f484
Expose paragraphSafeWidth.
2 files changed, 4 insertions(+), 0 deletions(-)

M CHANGELOG.md
M lib/Data/Text/ParagraphLayout/Rich.hs
M CHANGELOG.md => CHANGELOG.md +3 -0
@@ 11,6 11,9 @@
* Added option to prevent making boxes invisible when they contain no glyphs
  and no forced (hard) line breaks.

* Added function `paragraphSafeWidth` to help calculating max-content width
  for CSS.

* Text will now overflow the end edge of the paragraph according to the
  text direction of the root box, instead of always overflowing the right edge.


M lib/Data/Text/ParagraphLayout/Rich.hs => lib/Data/Text/ParagraphLayout/Rich.hs +1 -0
@@ 52,6 52,7 @@ module Data.Text.ParagraphLayout.Rich
    -- * Output layout
    , layoutRich
    , ParagraphLayout (ParagraphLayout, paragraphRect, paragraphFragments)
    , paragraphSafeWidth
    , Fragment
        ( Fragment
        , fragmentUserData