📣 borb release 2.1.0
This release is a feature release:
- The
LayoutElement
framework has had a major upgrade- Each
LayoutElement
now offers aget_layout_box
method which tells you how much space aLayoutElement
takes up - Each
LayoutElement
now offers apaint
method which renders theLayoutElement
on aPage
LayoutElement
only adds its own content to thePage
(previously it would change the order of page content to ensure backgrounds get drawn first)
- Each
- As a result of these changes, layout is a bit faster in this release, compared to previous releases
- All tests have been checked and changed to take into account the new behaviour
- Tests that perform visual comparison ignore
HexColor("00ff00")
, which allows me to add the date of the test in the output, and still compare only the relevant pixels MarkdownToPDF
has been refactored to convertMarkdown
toHTML
HTMLToPDF
still needs work to produce PDF documents