react-native-rectangle-doc-scanner 7.41.0 → 7.42.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.
@@ -582,7 +582,7 @@ class CameraController(
582
582
  if (rotation == Surface.ROTATION_90 || rotation == Surface.ROTATION_270) {
583
583
  val swappedBufferRect = RectF(0f, 0f, preview.height.toFloat(), preview.width.toFloat())
584
584
  swappedBufferRect.offset(centerX - swappedBufferRect.centerX(), centerY - swappedBufferRect.centerY())
585
- matrix.setRectToRect(viewRect, swappedBufferRect, Matrix.ScaleToFit.FILL)
585
+ matrix.setRectToRect(viewRect, swappedBufferRect, Matrix.ScaleToFit.CENTER)
586
586
  val scale = max(viewHeight / preview.height.toFloat(), viewWidth / preview.width.toFloat())
587
587
  matrix.postScale(scale, scale, centerX, centerY)
588
588
  matrix.postRotate(90f * (rotation - 2), centerX, centerY)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rectangle-doc-scanner",
3
- "version": "7.41.0",
3
+ "version": "7.42.0",
4
4
  "description": "Native-backed document scanner for React Native with customizable overlays.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",