MeasuredShape

data class MeasuredShape(val shape: Shape, val fill: PdfPaint?, val strokeColor: PdfColor?, val strokeWidth: Float, val size: Size) : MeasuredNode

Measurement result for a com.conamobile.pdfkmp.node.ShapeNode.

The shape's path is generated at draw time inside size — we do not pre-compute it during measurement so that nothing has to be re-layout when the shape gets stretched by a weighted slot.

Constructors

Link copied to clipboard
constructor(shape: Shape, fill: PdfPaint?, strokeColor: PdfColor?, strokeWidth: Float, size: Size)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val size: Size

Final size of the node within its parent.

Link copied to clipboard
Link copied to clipboard