Skip to content

Commit

Permalink
chore: Reformat code (ktlint 1.0.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
svenjacobs committed Oct 22, 2023
1 parent 031f02e commit 2840bec
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 17 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ktlint_code_style = android_studio
ktlint_experimental = enabled
ktlint_standard_function-naming = disabled
ktlint_standard_property-naming = disabled
ktlint_function_naming_ignore_when_annotated_with = Composable
ij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma_on_call_site = true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ public interface RevealOverlayScope {
): Modifier
}

internal class RevealOverlayScopeInstance(
private val revealableRect: IntRect,
) : RevealOverlayScope {
internal class RevealOverlayScopeInstance(private val revealableRect: IntRect) :
RevealOverlayScope {

override fun Modifier.align(
horizontalArrangement: RevealOverlayArrangement.Horizontal,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ public interface RevealScope {
): Modifier
}

internal class RevealScopeInstance(
private val revealState: RevealState,
) : RevealScope {
internal class RevealScopeInstance(private val revealState: RevealState) : RevealScope {

override fun Modifier.revealable(
key: Key,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ public sealed interface RevealShape {
}
}

public class RoundRect(
private val cornerSize: Dp,
) : RevealShape {
public class RoundRect(private val cornerSize: Dp) : RevealShape {

override fun clip(size: Size, density: Density, layoutDirection: LayoutDirection): Path =
Path().apply {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ public data class Revealable(
* @param size Size in pixels of revealable
*/
@Immutable
public data class Layout(
val offset: Offset,
val size: Size,
)
public data class Layout(val offset: Offset, val size: Size)
}

@Immutable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,7 @@ public class DimRevealOverlayEffect(
}

@Stable
private class DimItemHolder(
val revealable: ActualRevealable,
val contentAlpha: State<Float>,
) {
private class DimItemHolder(val revealable: ActualRevealable, val contentAlpha: State<Float>) {

@Composable
fun BoxScope.Container(
Expand Down

0 comments on commit 2840bec

Please sign in to comment.