react-native-rectangle-doc-scanner 3.145.0 → 3.146.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.
@@ -260,10 +260,10 @@ class CameraView(context: Context) : FrameLayout(context) {
260
260
 
261
261
  private fun drawRectangle(canvas: Canvas, rect: Rectangle) {
262
262
  val path = Path().apply {
263
- moveTo(rect.topLeft.x, rect.topLeft.y)
264
- lineTo(rect.topRight.x, rect.topRight.y)
265
- lineTo(rect.bottomRight.x, rect.bottomRight.y)
266
- lineTo(rect.bottomLeft.x, rect.bottomLeft.y)
263
+ moveTo(rect.topLeft.x.toFloat(), rect.topLeft.y.toFloat())
264
+ lineTo(rect.topRight.x.toFloat(), rect.topRight.y.toFloat())
265
+ lineTo(rect.bottomRight.x.toFloat(), rect.bottomRight.y.toFloat())
266
+ lineTo(rect.bottomLeft.x.toFloat(), rect.bottomLeft.y.toFloat())
267
267
  close()
268
268
  }
269
269
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rectangle-doc-scanner",
3
- "version": "3.145.0",
3
+ "version": "3.146.0",
4
4
  "description": "Native-backed document scanner for React Native with customizable overlays.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",