react-native-rectangle-doc-scanner 10.19.0 → 10.21.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.
|
@@ -486,13 +486,13 @@ class CameraController(
|
|
|
486
486
|
val centerY = viewHeight / 2f
|
|
487
487
|
|
|
488
488
|
// Calculate rotation from buffer to display coordinates.
|
|
489
|
-
|
|
489
|
+
// CameraX already accounts for sensor orientation via targetRotation; only apply display rotation.
|
|
490
|
+
val rotationDegrees = displayRotationDegrees.toFloat()
|
|
490
491
|
|
|
491
492
|
Log.d(TAG, "[TRANSFORM] Applying rotation: ${rotationDegrees}°")
|
|
492
493
|
|
|
493
494
|
if (rotationDegrees != 0f) {
|
|
494
|
-
|
|
495
|
-
matrix.postRotate(-rotationDegrees, centerX, centerY)
|
|
495
|
+
matrix.postRotate(rotationDegrees, centerX, centerY)
|
|
496
496
|
}
|
|
497
497
|
|
|
498
498
|
// After rotation, determine effective buffer size
|
package/package.json
CHANGED