@@ -15,11 +15,11 @@ import androidx.compose.ui.unit.DpSize
1515import dev.bnorm.storyboard.core.*
1616
1717@Composable
18- fun StoryboardScene ( storyboard : StoryboardState , modifier : Modifier = Modifier ) {
18+ fun StoryScene ( storyState : StoryState , modifier : Modifier = Modifier ) {
1919 val holder = rememberSaveableStateHolder()
20- ProvideStoryboard (storyboard .storyboard) {
21- SceneWrapper (storyboard .storyboard.size, storyboard .storyboard.decorator, DisplayType .Story , modifier) {
22- val frame = storyboard .rememberTransition()
20+ ProvideStoryboard (storyState .storyboard) {
21+ SceneWrapper (storyState .storyboard.size, storyState .storyboard.decorator, DisplayType .Story , modifier) {
22+ val frame = storyState .rememberTransition()
2323 frame.createChildTransition { it.scene }.AnimatedContent (
2424 transitionSpec = {
2525 val direction = when {
@@ -32,7 +32,7 @@ fun StoryboardScene(storyboard: StoryboardState, modifier: Modifier = Modifier)
3232 ) { scene ->
3333 holder.SaveableStateProvider (scene) {
3434 Box (Modifier .fillMaxSize()) {
35- SceneContent (storyboard , scene, frame, this @AnimatedContent, this @SceneWrapper)
35+ SceneContent (storyState , scene, frame, this @AnimatedContent, this @SceneWrapper)
3636 }
3737 }
3838 }
@@ -42,9 +42,9 @@ fun StoryboardScene(storyboard: StoryboardState, modifier: Modifier = Modifier)
4242
4343@Composable
4444private fun <T > SceneContent (
45- storyboard : StoryboardState ,
46- stateScene : StoryboardState .StateScene <T >,
47- frame : Transition <StoryboardState .StateFrame <* >>,
45+ storyState : StoryState ,
46+ stateScene : StoryState .StateScene <T >,
47+ frame : Transition <StoryState .StateFrame <* >>,
4848 animatedContentScope : AnimatedContentScope ,
4949 sharedTransitionScope : SharedTransitionScope ,
5050) {
@@ -57,9 +57,9 @@ private fun <T> SceneContent(
5757 }
5858 }
5959
60- val scope = remember(storyboard , stateScene, state, animatedContentScope, sharedTransitionScope) {
60+ val scope = remember(storyState , stateScene, state, animatedContentScope, sharedTransitionScope) {
6161 StoryboardSceneScope (
62- storyboard = storyboard ,
62+ storyState = storyState ,
6363 states = stateScene.scene.states,
6464 frame = state,
6565 animatedVisibilityScope = animatedContentScope,
0 commit comments