Pdf.Layout.AbsoluteReflow (ex_pdf_components v1.0.4)

Copy Markdown View Source

HTML-like reflow for absolutely-positioned box children.

  • Text wraps within the parent width (break_text applied automatically)
  • Vertical stacks (same x column) push siblings below down
  • Content at/after reflow_anchor shifts down when the header grows
  • Box height grows via measure/4

Summary

Functions

Measure inner height after reflow.

Returns children with updated positions/styles after reflow.

Functions

measure(children, inner_width, style, doc \\ nil)

@spec measure(list(), number(), map(), any()) :: number()

Measure inner height after reflow.

prepare(children, inner_width, style, doc \\ nil)

@spec prepare(list(), number(), map(), any()) :: list()

Returns children with updated positions/styles after reflow.