react-native-rectangle-doc-scanner 4.6.0 → 4.7.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.
|
@@ -524,7 +524,7 @@ class CameraController(
|
|
|
524
524
|
|
|
525
525
|
val matrix = Matrix()
|
|
526
526
|
bufferRect.offset(centerX - bufferRect.centerX(), centerY - bufferRect.centerY())
|
|
527
|
-
matrix.setRectToRect(
|
|
527
|
+
matrix.setRectToRect(bufferRect, viewRect, Matrix.ScaleToFit.FILL)
|
|
528
528
|
val scale = max(viewWidth / bufferWidth, viewHeight / bufferHeight)
|
|
529
529
|
matrix.postScale(scale, scale, centerX, centerY)
|
|
530
530
|
matrix.postRotate(rotation.toFloat(), centerX, centerY)
|