react-native-rectangle-doc-scanner 3.47.0 → 3.48.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.
- package/dist/FullDocScanner.js +2 -2
- package/package.json +1 -1
- package/src/FullDocScanner.tsx +3 -3
package/dist/FullDocScanner.js
CHANGED
|
@@ -121,12 +121,12 @@ const FullDocScanner = ({ onResult, onClose, detectionConfig, overlayColor = '#3
|
|
|
121
121
|
croppedPath: document.croppedPath,
|
|
122
122
|
initialPath: document.initialPath,
|
|
123
123
|
});
|
|
124
|
-
|
|
124
|
+
const normalizedDoc = normalizeCapturedDocument(document);
|
|
125
|
+
// Reset manual capture pending flag BEFORE processing
|
|
125
126
|
if (manualCapturePending.current) {
|
|
126
127
|
console.log('[FullDocScanner] Resetting manualCapturePending');
|
|
127
128
|
manualCapturePending.current = false;
|
|
128
129
|
}
|
|
129
|
-
const normalizedDoc = normalizeCapturedDocument(document);
|
|
130
130
|
// If grid detected and cropped image exists, show it directly in check_DP
|
|
131
131
|
if (normalizedDoc.croppedPath) {
|
|
132
132
|
console.log('[FullDocScanner] Grid detected: using pre-cropped image', normalizedDoc.croppedPath);
|
package/package.json
CHANGED
package/src/FullDocScanner.tsx
CHANGED
|
@@ -165,14 +165,14 @@ export const FullDocScanner: React.FC<FullDocScannerProps> = ({
|
|
|
165
165
|
initialPath: document.initialPath,
|
|
166
166
|
});
|
|
167
167
|
|
|
168
|
-
|
|
168
|
+
const normalizedDoc = normalizeCapturedDocument(document);
|
|
169
|
+
|
|
170
|
+
// Reset manual capture pending flag BEFORE processing
|
|
169
171
|
if (manualCapturePending.current) {
|
|
170
172
|
console.log('[FullDocScanner] Resetting manualCapturePending');
|
|
171
173
|
manualCapturePending.current = false;
|
|
172
174
|
}
|
|
173
175
|
|
|
174
|
-
const normalizedDoc = normalizeCapturedDocument(document);
|
|
175
|
-
|
|
176
176
|
// If grid detected and cropped image exists, show it directly in check_DP
|
|
177
177
|
if (normalizedDoc.croppedPath) {
|
|
178
178
|
console.log('[FullDocScanner] Grid detected: using pre-cropped image', normalizedDoc.croppedPath);
|