react-native-rectangle-doc-scanner 7.57.0 → 7.59.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.
@@ -662,9 +662,9 @@ class CameraController(
662
662
 
663
663
  val rotationDegrees = computeRotationDegrees()
664
664
  val transformRotation = if (useFrontCamera) {
665
- rotationDegrees
666
- } else {
667
665
  (360 - rotationDegrees) % 360
666
+ } else {
667
+ rotationDegrees
668
668
  }
669
669
  Log.d(
670
670
  TAG,
@@ -483,10 +483,10 @@ class DocumentScannerView(context: ThemedReactContext) : FrameLayout(context), L
483
483
  })
484
484
  previewViewport?.let {
485
485
  putMap("previewViewport", Arguments.createMap().apply {
486
- putDouble("left", it.left / density)
487
- putDouble("top", it.top / density)
488
- putDouble("width", it.width() / density)
489
- putDouble("height", it.height() / density)
486
+ putDouble("left", (it.left / density).toDouble())
487
+ putDouble("top", (it.top / density).toDouble())
488
+ putDouble("width", (it.width() / density).toDouble())
489
+ putDouble("height", (it.height() / density).toDouble())
490
490
  })
491
491
  }
492
492
  putMap("previewSize", Arguments.createMap().apply {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rectangle-doc-scanner",
3
- "version": "7.57.0",
3
+ "version": "7.59.0",
4
4
  "description": "Native-backed document scanner for React Native with customizable overlays.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",