From 8d6bf2754530bee05103f013bf5846af5a5721de Mon Sep 17 00:00:00 2001 From: Chris Banes Date: Tue, 1 Oct 2024 20:38:03 +0100 Subject: [PATCH] Hide API which we shouldn't have been public --- haze/api/api.txt | 4 ---- haze/src/commonMain/kotlin/dev/chrisbanes/haze/Canvas.kt | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/haze/api/api.txt b/haze/api/api.txt index b6958964..1848a1dd 100644 --- a/haze/api/api.txt +++ b/haze/api/api.txt @@ -1,10 +1,6 @@ // Signature format: 4.0 package dev.chrisbanes.haze { - public final class CanvasKt { - method public static inline void translate(androidx.compose.ui.graphics.drawscope.DrawScope, long offset, kotlin.jvm.functions.Function1 block); - } - public final class HazeChildKt { method @Deprecated public static androidx.compose.ui.Modifier hazeChild(androidx.compose.ui.Modifier, dev.chrisbanes.haze.HazeState state, androidx.compose.ui.graphics.Shape shape, dev.chrisbanes.haze.HazeStyle style); method public static androidx.compose.ui.Modifier hazeChild(androidx.compose.ui.Modifier, dev.chrisbanes.haze.HazeState state, dev.chrisbanes.haze.HazeStyle style); diff --git a/haze/src/commonMain/kotlin/dev/chrisbanes/haze/Canvas.kt b/haze/src/commonMain/kotlin/dev/chrisbanes/haze/Canvas.kt index 548e7df4..dd7d3c8a 100644 --- a/haze/src/commonMain/kotlin/dev/chrisbanes/haze/Canvas.kt +++ b/haze/src/commonMain/kotlin/dev/chrisbanes/haze/Canvas.kt @@ -19,7 +19,7 @@ internal inline fun GraphicsContext.useGraphicsLayer(block: (GraphicsLayer) -> U } } -inline fun DrawScope.translate( +internal inline fun DrawScope.translate( offset: Offset, block: DrawScope.() -> Unit, ) {