panelSize
Converts the Dp size to IntSize in pixel for AttachmentPanelComponent using. If the Dp is Dp.Unspecified, the IntSize will be WRAP_CONTENT.
Return
The IntSize instance in pixel.
Parameters
width
The width of the AttachmentPanelComponent in dp.
height
The height of the AttachmentPanelComponent in dp.
@Composable
Converts the Float size of length unit to IntSize in pixel for AttachmentPanelComponent using. If the Float is Float.NaN, the IntSizewill be WRAP_CONTENT.
Return
The IntSize instance in pixel.
Parameters
width
The width of the AttachmentPanelComponent in the unit of lengthUnit.
height
The height of the AttachmentPanelComponent in the unit of lengthUnit.
lengthUnit
The unit of the width and height. Default value is LengthUnit.Meters.