Skip to content

Commit

Permalink
Improve comments for IntelliJ hovering tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
hamoid committed Aug 3, 2022
1 parent 1e3b73a commit 738c013
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions orx-image-fit/src/commonMain/kotlin/ImageFit.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,20 @@ import kotlin.math.min
* Available `object-fit` methods (borrowed from CSS)
*/
enum class FitMethod {
Cover, // Cover target area. Crop the source image if needed.
Contain, // Fit image in target area. Add margins if needed.
Fill, // Deform source image to match the target area.
None // Maintain original image scale, crop as needed.
// ScaleDown // Not implemented.
/** Cover target area. Crop the source image if needed. */
Cover,

/** Fit image in target area. Add margins if needed. */
Contain,

/** Deform source image to match the target area. */
Fill,

/** Maintain original image scale, crop to target area size. */
None

/** Not implemented */
// ScaleDown
}

/**
Expand Down

0 comments on commit 738c013

Please sign in to comment.