react-native-rectangle-doc-scanner 3.13.0 → 3.15.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/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
{
|
|
83
83
|
if (self.context) return;
|
|
84
84
|
|
|
85
|
+
NSLog(@"[IPDFCamera] createGLKView - self.bounds: %@", NSStringFromCGRect(self.bounds));
|
|
85
86
|
self.context = [[EAGLContext alloc] initWithAPI:kEAGLRenderingAPIOpenGLES2];
|
|
86
87
|
GLKView *view = [[GLKView alloc] initWithFrame:self.bounds];
|
|
87
88
|
view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
|
@@ -91,6 +92,7 @@
|
|
|
91
92
|
view.drawableDepthFormat = GLKViewDrawableDepthFormat24;
|
|
92
93
|
[self insertSubview:view atIndex:0];
|
|
93
94
|
_glkView = view;
|
|
95
|
+
NSLog(@"[IPDFCamera] createGLKView - created GLKView with frame: %@", NSStringFromCGRect(view.frame));
|
|
94
96
|
glGenRenderbuffers(1, &_renderBuffer);
|
|
95
97
|
glBindRenderbuffer(GL_RENDERBUFFER, _renderBuffer);
|
|
96
98
|
_coreImageContext = [CIContext contextWithEAGLContext:self.context];
|
|
@@ -101,6 +103,13 @@
|
|
|
101
103
|
{
|
|
102
104
|
[self createGLKView];
|
|
103
105
|
|
|
106
|
+
// Explicitly set GLKView frame to match current bounds
|
|
107
|
+
if (_glkView) {
|
|
108
|
+
NSLog(@"[IPDFCamera] setupCameraView - setting _glkView.frame to self.bounds: %@", NSStringFromCGRect(self.bounds));
|
|
109
|
+
_glkView.frame = self.bounds;
|
|
110
|
+
NSLog(@"[IPDFCamera] setupCameraView - _glkView.frame is now: %@", NSStringFromCGRect(_glkView.frame));
|
|
111
|
+
}
|
|
112
|
+
|
|
104
113
|
AVCaptureDevice *device = nil;
|
|
105
114
|
NSArray *devices = [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo];
|
|
106
115
|
for (AVCaptureDevice *possibleDevice in devices) {
|
|
@@ -39,6 +39,9 @@ RCT_EXPORT_METHOD(capture) {
|
|
|
39
39
|
|
|
40
40
|
- (UIView*) view {
|
|
41
41
|
_scannerView = [[DocumentScannerView alloc] init];
|
|
42
|
+
// Force layout update
|
|
43
|
+
_scannerView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
|
|
44
|
+
NSLog(@"[RNPdfScannerManager] Created view with frame: %@", NSStringFromCGRect(_scannerView.frame));
|
|
42
45
|
return _scannerView;
|
|
43
46
|
}
|
|
44
47
|
|