Package-level declarations Package

How the design screens display a page image: the crop surface’s appearance and the zoom behaviour.

Types

CropImageParams

@Immutable data class CropImageParams(val cropGrip: Painter, val cropHalo: Painter, val edgeGrip: Painter, val edgeHalo: Painter, val normalLineColor: Color, val normalLineStyle: DrawStyle, val invalidLineColor: Color, val invalidLineStyle: DrawStyle, val zoomImageParams: ZoomImageParams, val blurRadius: Dp)

How the crop surface looks and behaves: handle size, stroke widths, and colours.

ZoomImageParams

@Immutable data class ZoomImageParams(val minScale: Float, val tapScale: Float, val maxScale: Float, val scrollPadding: PaddingValues)

How a zoomable image behaves: the zoom limits and how it responds to gestures.

Functions

defaultCropImageParams

@Stable @Composable fun defaultCropImageParams(zoomImageParams: ZoomImageParams = defaultZoomImageParams(PaddingValues(40.dp))): CropImageParams

Handle sizes, stroke widths, and colours for the crop surface, with the SDK’s defaults.

defaultZoomImageParams

@Stable fun defaultZoomImageParams(scrollPadding: PaddingValues): ZoomImageParams

Zoom limits and gesture behaviour for a zoomable image, with the SDK’s defaults.

Top