Skip to content

Commit

Permalink
Rename GesturesReferencePoint to GestureReferencePoint
Browse files Browse the repository at this point in the history
  • Loading branch information
KovalevAndrey committed Jan 23, 2024
1 parent c252a00 commit 1eec5c3
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import com.bumble.appyx.interactions.core.ui.property.motionPropertyRenderValue

private val defaultExtraTouch = 48f.dp

enum class GesturesReferencePoint {
enum class GestureReferencePoint {
Container,
Element
}
Expand All @@ -65,7 +65,7 @@ fun <InteractionTarget : Any, ModelState : Any> AppyxInteractionsContainer(
clipToBounds: Boolean = false,
gestureValidator: GestureValidator = defaultValidator,
gestureExtraTouchArea: Dp = defaultExtraTouch,
gestureRelativeTo: GesturesReferencePoint = GesturesReferencePoint.Container,
gestureRelativeTo: GestureReferencePoint = GestureReferencePoint.Container,
elementUi: @Composable BoxScope.(Element<InteractionTarget>) -> Unit = { _ ->
Text(
modifier = Modifier
Expand Down Expand Up @@ -141,7 +141,7 @@ fun <InteractionTarget : Any, ModelState : Any> AppyxInteractionsContainer(
}
}

gestureRelativeTo == GesturesReferencePoint.Element ->
gestureRelativeTo == GestureReferencePoint.Element ->
ElementWithGestureTransformedBoundingBox(
appyxComponent = appyxComponent,
containerSize = containerSize,
Expand All @@ -151,7 +151,7 @@ fun <InteractionTarget : Any, ModelState : Any> AppyxInteractionsContainer(
elementUi = elementUi
)

gestureRelativeTo == GesturesReferencePoint.Container ->
gestureRelativeTo == GestureReferencePoint.Container ->
ElementWithGesture(
appyxComponent = appyxComponent,
elementUiModel = elementUiModel,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import com.bumble.appyx.interactions.core.AppyxInteractionsContainer
import com.bumble.appyx.interactions.core.Element
import com.bumble.appyx.interactions.core.GesturesReferencePoint
import com.bumble.appyx.interactions.core.GestureReferencePoint
import com.bumble.appyx.interactions.core.gesture.GestureValidator
import com.bumble.appyx.interactions.core.model.BaseAppyxComponent
import com.bumble.appyx.navigation.integration.LocalScreenSize
Expand All @@ -26,7 +26,7 @@ fun <NavTarget : Any, ModelState : Any> AppyxNavigationContainer(
clipToBounds: Boolean = false,
gestureValidator: GestureValidator = GestureValidator.defaultValidator,
gestureExtraTouchArea: Dp = defaultExtraTouch,
gestureRelativeTo: GesturesReferencePoint = GesturesReferencePoint.Container,
gestureRelativeTo: GestureReferencePoint = GestureReferencePoint.Container,
decorator: @Composable (child: ChildRenderer, element: Element<NavTarget>) -> Unit = { child, _ ->
child()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import com.bumble.appyx.components.internal.testdrive.TestDriveModel.State.Eleme
import com.bumble.appyx.components.internal.testdrive.operation.next
import com.bumble.appyx.demos.incompletedrag.InteractionTarget.Child1
import com.bumble.appyx.interactions.core.AppyxInteractionsContainer
import com.bumble.appyx.interactions.core.GesturesReferencePoint
import com.bumble.appyx.interactions.core.GestureReferencePoint
import com.bumble.appyx.interactions.core.model.transition.Operation.Mode.IMMEDIATE
import com.bumble.appyx.interactions.core.ui.gesture.GestureSettleConfig
import com.bumble.appyx.interactions.core.ui.helper.AppyxComponentSetup
Expand Down Expand Up @@ -147,7 +147,7 @@ fun <InteractionTarget : Any> ModelUi(
appyxComponent = testDrive,
screenWidthPx = screenWidthPx,
screenHeightPx = screenHeightPx,
gestureRelativeTo = GesturesReferencePoint.Element,
gestureRelativeTo = GestureReferencePoint.Element,
modifier = modifier
)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import com.bumble.appyx.components.internal.testdrive.TestDriveModel.State.Eleme
import com.bumble.appyx.components.internal.testdrive.operation.next
import com.bumble.appyx.demos.sample1.InteractionTarget.Child1
import com.bumble.appyx.interactions.core.AppyxInteractionsContainer
import com.bumble.appyx.interactions.core.GesturesReferencePoint
import com.bumble.appyx.interactions.core.GestureReferencePoint
import com.bumble.appyx.interactions.core.model.transition.Operation.Mode.IMMEDIATE
import com.bumble.appyx.interactions.core.ui.helper.AppyxComponentSetup

Expand Down Expand Up @@ -144,7 +144,7 @@ fun <InteractionTarget : Any> ModelUi(
appyxComponent = testDrive,
screenWidthPx = screenWidthPx,
screenHeightPx = screenHeightPx,
gestureRelativeTo = GesturesReferencePoint.Element
gestureRelativeTo = GestureReferencePoint.Element
) {
Box(
modifier = Modifier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import com.bumble.appyx.components.internal.testdrive.TestDriveModel.State.Eleme
import com.bumble.appyx.components.internal.testdrive.operation.next
import com.bumble.appyx.demos.sample2.InteractionTarget.Child1
import com.bumble.appyx.interactions.core.AppyxInteractionsContainer
import com.bumble.appyx.interactions.core.GesturesReferencePoint
import com.bumble.appyx.interactions.core.GestureReferencePoint
import com.bumble.appyx.interactions.core.model.transition.Operation.Mode.IMMEDIATE
import com.bumble.appyx.interactions.core.ui.helper.AppyxComponentSetup

Expand Down Expand Up @@ -145,7 +145,7 @@ fun <InteractionTarget : Any> ModelUi(
appyxComponent = testDrive,
screenWidthPx = screenWidthPx,
screenHeightPx = screenHeightPx,
gestureRelativeTo = GesturesReferencePoint.Element
gestureRelativeTo = GestureReferencePoint.Element
) {
Box(
modifier = Modifier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import com.bumble.appyx.components.internal.testdrive.operation.next
import com.bumble.appyx.demos.sample3.InteractionTarget.Child1
import com.bumble.appyx.demos.sample3.Sample3Visualisation.Companion.toTargetUiState
import com.bumble.appyx.interactions.core.AppyxInteractionsContainer
import com.bumble.appyx.interactions.core.GesturesReferencePoint
import com.bumble.appyx.interactions.core.GestureReferencePoint
import com.bumble.appyx.interactions.core.model.transition.Keyframes
import com.bumble.appyx.interactions.core.model.transition.Operation.Mode.IMMEDIATE
import com.bumble.appyx.interactions.core.model.transition.Operation.Mode.KEYFRAME
Expand Down Expand Up @@ -200,7 +200,7 @@ fun <InteractionTarget : Any> ModelUi(
appyxComponent = testDrive,
screenWidthPx = screenWidthPx,
screenHeightPx = screenHeightPx,
gestureRelativeTo = GesturesReferencePoint.Element,
gestureRelativeTo = GestureReferencePoint.Element,
modifier = modifier
) {
Box(
Expand Down

0 comments on commit 1eec5c3

Please sign in to comment.