@capgo/camera-preview 7.4.0-beta.6 → 7.4.0-beta.7
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/README.md +40 -6
- package/android/.gradle/8.14.2/checksums/checksums.lock +0 -0
- package/android/.gradle/8.14.2/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.14.2/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.14.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.14.2/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/8.14.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.14.2/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/android/.gradle/config.properties +2 -0
- package/android/.idea/AndroidProjectSystem.xml +6 -0
- package/android/.idea/caches/deviceStreaming.xml +811 -0
- package/android/.idea/compiler.xml +6 -0
- package/android/.idea/gradle.xml +18 -0
- package/android/.idea/migrations.xml +10 -0
- package/android/.idea/misc.xml +10 -0
- package/android/.idea/runConfigurations.xml +17 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/.idea/workspace.xml +55 -0
- package/android/local.properties +8 -0
- package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraPreview.java +45 -18
- package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraXView.java +54 -9
- package/dist/docs.json +56 -4
- package/dist/esm/definitions.d.ts +23 -4
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/web.d.ts +9 -3
- package/dist/esm/web.js +13 -7
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +13 -7
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +13 -7
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/CapgoCameraPreview/CameraController.swift +35 -13
- package/ios/Sources/CapgoCameraPreview/Plugin.swift +101 -26
- package/package.json +1 -1
- package/android/.gradle/8.14.2/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/file-system.probe +0 -0
package/README.md
CHANGED
|
@@ -222,6 +222,8 @@ Documentation for the [uploader](https://github.com/Cap-go/capacitor-uploader)
|
|
|
222
222
|
* [`getSupportedFlashModes()`](#getsupportedflashmodes)
|
|
223
223
|
* [`setAspectRatio(...)`](#setaspectratio)
|
|
224
224
|
* [`getAspectRatio()`](#getaspectratio)
|
|
225
|
+
* [`setGridMode(...)`](#setgridmode)
|
|
226
|
+
* [`getGridMode()`](#getgridmode)
|
|
225
227
|
* [`getHorizontalFov()`](#gethorizontalfov)
|
|
226
228
|
* [`getSupportedPictureSizes()`](#getsupportedpicturesizes)
|
|
227
229
|
* [`setFlashMode(...)`](#setflashmode)
|
|
@@ -336,14 +338,14 @@ Gets the flash modes supported by the active camera.
|
|
|
336
338
|
### setAspectRatio(...)
|
|
337
339
|
|
|
338
340
|
```typescript
|
|
339
|
-
setAspectRatio(options: { aspectRatio: '4:3' | '16:9'
|
|
341
|
+
setAspectRatio(options: { aspectRatio: '4:3' | '16:9'; }) => Promise<void>
|
|
340
342
|
```
|
|
341
343
|
|
|
342
344
|
Set the aspect ratio of the camera preview.
|
|
343
345
|
|
|
344
|
-
| Param | Type
|
|
345
|
-
| ------------- |
|
|
346
|
-
| **`options`** | <code>{ aspectRatio: '4:3' \| '16:9'
|
|
346
|
+
| Param | Type | Description |
|
|
347
|
+
| ------------- | ---------------------------------------------- | --------------------------- |
|
|
348
|
+
| **`options`** | <code>{ aspectRatio: '4:3' \| '16:9'; }</code> | - The desired aspect ratio. |
|
|
347
349
|
|
|
348
350
|
**Since:** 7.4.0
|
|
349
351
|
|
|
@@ -353,18 +355,50 @@ Set the aspect ratio of the camera preview.
|
|
|
353
355
|
### getAspectRatio()
|
|
354
356
|
|
|
355
357
|
```typescript
|
|
356
|
-
getAspectRatio() => Promise<{ aspectRatio: '4:3' | '16:9'
|
|
358
|
+
getAspectRatio() => Promise<{ aspectRatio: '4:3' | '16:9'; }>
|
|
357
359
|
```
|
|
358
360
|
|
|
359
361
|
Gets the current aspect ratio of the camera preview.
|
|
360
362
|
|
|
361
|
-
**Returns:** <code>Promise<{ aspectRatio: '4:3' | '16:9'
|
|
363
|
+
**Returns:** <code>Promise<{ aspectRatio: '4:3' | '16:9'; }></code>
|
|
362
364
|
|
|
363
365
|
**Since:** 7.4.0
|
|
364
366
|
|
|
365
367
|
--------------------
|
|
366
368
|
|
|
367
369
|
|
|
370
|
+
### setGridMode(...)
|
|
371
|
+
|
|
372
|
+
```typescript
|
|
373
|
+
setGridMode(options: { gridMode: GridMode; }) => Promise<void>
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
Sets the grid mode of the camera preview overlay.
|
|
377
|
+
|
|
378
|
+
| Param | Type | Description |
|
|
379
|
+
| ------------- | ------------------------------------------------------------ | -------------------------------------------------- |
|
|
380
|
+
| **`options`** | <code>{ gridMode: <a href="#gridmode">GridMode</a>; }</code> | - The desired grid mode ('none', '3x3', or '4x4'). |
|
|
381
|
+
|
|
382
|
+
**Since:** 8.0.0
|
|
383
|
+
|
|
384
|
+
--------------------
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
### getGridMode()
|
|
388
|
+
|
|
389
|
+
```typescript
|
|
390
|
+
getGridMode() => Promise<{ gridMode: GridMode; }>
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
Gets the current grid mode of the camera preview overlay.
|
|
394
|
+
|
|
395
|
+
**Returns:** <code>Promise<{ gridMode: <a href="#gridmode">GridMode</a>; }></code>
|
|
396
|
+
|
|
397
|
+
**Since:** 8.0.0
|
|
398
|
+
|
|
399
|
+
--------------------
|
|
400
|
+
|
|
401
|
+
|
|
368
402
|
### getHorizontalFov()
|
|
369
403
|
|
|
370
404
|
```typescript
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#
|
|
1
|
+
#Tue Jul 01 15:51:59 CEST 2025
|
|
2
2
|
gradle.version=8.14.2
|