commonMain.ovh.plrapps.mapcompose.ui.layout.MinimumScaleMode.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mapcompose-mp-desktop Show documentation
Show all versions of mapcompose-mp-desktop Show documentation
A Compose Multiplatform library to display tiled maps, with support for markers, paths, and rotation
The newest version!
package ovh.plrapps.mapcompose.ui.layout
sealed class MinimumScaleMode
/**
* Limit the minimum scale to no less than what would be required to fit inside the container.
* This is the default mode.
*/
data object Fit : MinimumScaleMode()
/**
* Limit the minimum scale to no less than what would be required to fill the container.
*/
data object Fill : MinimumScaleMode()
/**
* Force a specific minimum scale.
*/
data class Forced(val scale: Float) : MinimumScaleMode()