Skip to content

Commit

Permalink
Merge pull request #611 from zsoltk/lower-spring-thresholds
Browse files Browse the repository at this point in the history
Lower position and rotation animation default round-off thresholds
  • Loading branch information
zsoltk authored Oct 6, 2023
2 parents ccc0dee + 3ad2679 commit 2f57e81
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@

## Pending changes

### Changed

- [#611](https://github.com/bumble-tech/appyx/pull/611) – Lower position and rotation animation default round-off thresholds

---

## 2.0.0-alpha08

### Fixed

- [#608](https://github.com/bumble-tech/appyx/pull/608) – Setting default value to NodeCustomisationDirectory in IosNodeHost

---

## 2.0.0-alpha07

### Added
Expand All @@ -19,6 +25,7 @@

<div style="text-align: center"><small>4 Oct 2023</small></div>

---

## 2.0.0-alpha06

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import kotlinx.coroutines.flow.StateFlow
class RotationX(
coroutineScope: CoroutineScope,
target: Target,
visibilityThreshold: Float = 1f,
visibilityThreshold: Float = 0.1f,
displacement: StateFlow<Float> = MutableStateFlow(0f),
private val origin: TransformOrigin = target.origin,
) : MotionProperty<Float, AnimationVector1D>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import kotlinx.coroutines.flow.StateFlow
class RotationY(
coroutineScope: CoroutineScope,
target: Target,
visibilityThreshold: Float = 1f,
visibilityThreshold: Float = 0.1f,
displacement: StateFlow<Float> = MutableStateFlow(0f),
private val origin: TransformOrigin = target.origin,
) : MotionProperty<Float, AnimationVector1D>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import kotlinx.coroutines.flow.StateFlow
class RotationZ(
coroutineScope: CoroutineScope,
target: Target,
visibilityThreshold: Float = 1f,
visibilityThreshold: Float = 0.1f,
displacement: StateFlow<Float> = MutableStateFlow(0f),
private val origin: TransformOrigin = target.origin,
) : MotionProperty<Float, AnimationVector1D>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class PositionInside(
coroutineScope: CoroutineScope,
val target: Target,
displacement: StateFlow<Value> = MutableStateFlow(Value.Zero),
visibilityThreshold: Value = Value(InsideAlignment(0.01f, 0.01f), DpOffset(1.dp, 1.dp)),
visibilityThreshold: Value = Value(InsideAlignment(0.001f, 0.001f), DpOffset(1.dp, 1.dp)),
) : MotionProperty<Value, AnimationVector4D>(
coroutineScope = coroutineScope,
animatable = Animatable(target.value, Value.VectorConverter),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class PositionOutside(
coroutineScope: CoroutineScope,
val target: Target,
displacement: StateFlow<Value> = MutableStateFlow(Value.Zero),
visibilityThreshold: Value = Value(OutsideAlignment(0.01f, 0.01f), DpOffset(1.dp, 1.dp)),
visibilityThreshold: Value = Value(OutsideAlignment(0.001f, 0.001f), DpOffset(1.dp, 1.dp)),
) : MotionProperty<Value, AnimationVector4D>(
coroutineScope = coroutineScope,
animatable = Animatable(target.value, Value.VectorConverter),
Expand Down

0 comments on commit 2f57e81

Please sign in to comment.