@iternio/react-native-auto-play 0.1.15 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/android/src/main/java/com/margelo/nitro/swe/iternio/reactnativeautoplay/template/Parser.kt
CHANGED
|
@@ -654,9 +654,13 @@ object Parser {
|
|
|
654
654
|
setRoundaboutExitNumber(it.toInt())
|
|
655
655
|
}
|
|
656
656
|
nitroManeuver.angle?.let { roundaboutExitAngle ->
|
|
657
|
-
|
|
658
|
-
((180
|
|
659
|
-
|
|
657
|
+
if (nitroManeuver.trafficSide == TrafficSide.LEFT) {
|
|
658
|
+
val angle = ((180 + roundaboutExitAngle) % 360).toInt().let { if (it == 0) 360 else it }
|
|
659
|
+
setRoundaboutExitAngle(angle)
|
|
660
|
+
} else {
|
|
661
|
+
val angle = ((180 - roundaboutExitAngle) % 360).toInt().let { if (it == 0) 360 else it }
|
|
662
|
+
setRoundaboutExitAngle(angle)
|
|
663
|
+
}
|
|
660
664
|
}
|
|
661
665
|
}
|
|
662
666
|
}.build()
|