react-native-rectangle-doc-scanner 7.60.0 → 7.61.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.
@@ -661,11 +661,7 @@ class CameraController(
661
661
  if (viewWidth == 0f || viewHeight == 0f) return
662
662
 
663
663
  val rotationDegrees = computeRotationDegrees()
664
- val transformRotation = when (rotationDegrees) {
665
- 90 -> 270
666
- 270 -> 90
667
- else -> rotationDegrees
668
- }
664
+ val transformRotation = rotationDegrees
669
665
  Log.d(
670
666
  TAG,
671
667
  "[TRANSFORM] rotation=$transformRotation view=${viewWidth}x${viewHeight} preview=${preview.width}x${preview.height}"
@@ -682,7 +678,7 @@ class CameraController(
682
678
  val bufferRect = RectF(0f, 0f, bufferWidth, bufferHeight)
683
679
  bufferRect.offset(centerX - bufferRect.centerX(), centerY - bufferRect.centerY())
684
680
 
685
- matrix.setRectToRect(viewRect, bufferRect, Matrix.ScaleToFit.FILL)
681
+ matrix.setRectToRect(bufferRect, viewRect, Matrix.ScaleToFit.FILL)
686
682
  val scale = max(viewWidth / bufferWidth, viewHeight / bufferHeight)
687
683
  matrix.postScale(scale, scale, centerX, centerY)
688
684
  if (transformRotation != 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rectangle-doc-scanner",
3
- "version": "7.60.0",
3
+ "version": "7.61.0",
4
4
  "description": "Native-backed document scanner for React Native with customizable overlays.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",