|
|
@ -8,6 +8,7 @@ import androidx.compose.animation.core.tween |
|
|
|
import androidx.compose.foundation.Canvas |
|
|
|
import androidx.compose.foundation.Canvas |
|
|
|
import androidx.compose.foundation.layout.fillMaxSize |
|
|
|
import androidx.compose.foundation.layout.fillMaxSize |
|
|
|
import androidx.compose.foundation.layout.size |
|
|
|
import androidx.compose.foundation.layout.size |
|
|
|
|
|
|
|
import androidx.compose.material.Text |
|
|
|
import androidx.compose.runtime.Composable |
|
|
|
import androidx.compose.runtime.Composable |
|
|
|
import androidx.compose.runtime.LaunchedEffect |
|
|
|
import androidx.compose.runtime.LaunchedEffect |
|
|
|
import androidx.compose.runtime.remember |
|
|
|
import androidx.compose.runtime.remember |
|
|
@ -362,6 +363,8 @@ fun SomeCanvas() { |
|
|
|
// property("margin", "0 auto") |
|
|
|
// property("margin", "0 auto") |
|
|
|
} |
|
|
|
} |
|
|
|
}) { |
|
|
|
}) { |
|
|
|
|
|
|
|
Text("xxxx") |
|
|
|
|
|
|
|
|
|
|
|
skiko { |
|
|
|
skiko { |
|
|
|
val radius = remember { Animatable(10f) } |
|
|
|
val radius = remember { Animatable(10f) } |
|
|
|
LaunchedEffect(radius) { |
|
|
|
LaunchedEffect(radius) { |
|
|
@ -374,6 +377,8 @@ fun SomeCanvas() { |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Text(text = "Xxx") |
|
|
|
|
|
|
|
|
|
|
|
Canvas( |
|
|
|
Canvas( |
|
|
|
modifier = Modifier |
|
|
|
modifier = Modifier |
|
|
|
.size(400.dp) |
|
|
|
.size(400.dp) |
|
|
@ -460,9 +465,7 @@ fun App() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun main() { |
|
|
|
fun main() { |
|
|
|
onWasmReady { |
|
|
|
|
|
|
|
renderComposable(rootElementId = "root") { |
|
|
|
renderComposable(rootElementId = "root") { |
|
|
|
App() |
|
|
|
App() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|