react-native-rectangle-doc-scanner 10.16.0 → 10.17.0

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.
@@ -487,9 +487,9 @@ class CameraController(
487
487
 
488
488
  // Calculate rotation from buffer to display coordinates.
489
489
  val rotationDegrees = if (useFrontCamera) {
490
- ((sensorOrientation + displayRotationDegrees) % 360).toFloat()
490
+ ((displayRotationDegrees + sensorOrientation) % 360).toFloat()
491
491
  } else {
492
- ((sensorOrientation - displayRotationDegrees + 360) % 360).toFloat()
492
+ ((displayRotationDegrees - sensorOrientation + 360) % 360).toFloat()
493
493
  }
494
494
 
495
495
  Log.d(TAG, "[TRANSFORM] Applying rotation: ${rotationDegrees}°")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rectangle-doc-scanner",
3
- "version": "10.16.0",
3
+ "version": "10.17.0",
4
4
  "description": "Native-backed document scanner for React Native with customizable overlays.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",