Constraints

data class Constraints(val maxWidth: Float, val maxHeight: Float = Float.POSITIVE_INFINITY)

Layout constraint passed down during measurement. A value of Float.POSITIVE_INFINITY means unconstrained in that dimension.

Degenerate slots are well-defined rather than fatal: when a container's padding consumes all of the available extent, children measure against a zero-width / zero-height constraint and collapse to nothing — the document still renders, with that subtree invisible. Sizes are never clamped negative. Install a com.conamobile.pdfkmp.PdfLog.logger during development to surface other silently-handled conditions.

Constructors

Link copied to clipboard
constructor(maxWidth: Float, maxHeight: Float = Float.POSITIVE_INFINITY)

Properties

Link copied to clipboard
Link copied to clipboard