Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit cb5c557

Browse files
3.3.5
1 parent 263f50d commit cb5c557

File tree

8 files changed

+24
-21
lines changed

8 files changed

+24
-21
lines changed

Api Reference.url

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[InternetShortcut]
2-
URL=https://www.dynamsoft.com/camera-enhancer/docs/programming/javascript/api-reference/?ver=3.3.4
2+
URL=https://www.dynamsoft.com/camera-enhancer/docs/programming/javascript/api-reference/?ver=3.3.5

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ The simplest way to include the SDK is to use either the [jsDelivr](https://jsde
4747
<script src="https://unpkg.com/dynamsoft-camera-enhancer/dist/dce.js"></script>
4848
```
4949

50-
> In some rare cases, you might not be able to access the CDN. If this happens, you can use [https://download2.dynamsoft.com/dce/dynamsoft-camera-enhancer-js/dynamsoft-camera-enhancer-js-3.3.4/dist/dce.js](https://download2.dynamsoft.com/dce/dynamsoft-camera-enhancer-js/dynamsoft-camera-enhancer-js-3.3.4/dist/dce.js)
50+
> In some rare cases, you might not be able to access the CDN. If this happens, you can use [https://download2.dynamsoft.com/dce/dynamsoft-camera-enhancer-js/dynamsoft-camera-enhancer-js-3.3.5/dist/dce.js](https://download2.dynamsoft.com/dce/dynamsoft-camera-enhancer-js/dynamsoft-camera-enhancer-js-3.3.5/dist/dce.js)
5151
5252
#### Host the SDK yourself
5353

@@ -74,7 +74,7 @@ The following shows a few ways to download the SDK.
7474
Depending on how you downloaded the SDK and where you put it. You can typically include it like this:
7575

7676
```html
77-
<script src="/dynamsoft-camera-enhancer-js-3.3.4/dist/dce.js"></script>
77+
<script src="/dynamsoft-camera-enhancer-js-3.3.5/dist/dce.js"></script>
7878
```
7979

8080
or
@@ -191,7 +191,7 @@ Dynamsoft.DCE.CameraEnhancer.defaultUIElementURL = "THE-URL-TO-THE-FILE";
191191
</select>
192192
```
193193

194-
> Generally, you need to provide a resolution that the camera supports. However, in case a camera does not support the specified resolution, it usually uses the cloest supported resolution. As a result, the selected resolution may not be the actual resolution. In this case, add an option with the class name `dce-opt-gotResolution` (as shown above) and the SDK will then use it to show the **actual resolution**.
194+
> Generally, you need to provide a resolution that the camera supports. However, in case a camera does not support the specified resolution, it usually uses the closest supported resolution. As a result, the selected resolution may not be the actual resolution. In this case, add an option with the class name `dce-opt-gotResolution` (as shown above) and the SDK will then use it to show the **actual resolution**.
195195
196196
## Hosting the SDK
197197

dist/dce.esm.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dce.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dce.mjs

+2-2
Large diffs are not rendered by default.

dist/types/class/cameraenhancer.d.ts

+3-6
Original file line numberDiff line numberDiff line change
@@ -334,11 +334,6 @@ export default class CameraEnhancer implements ImageSource {
334334
* @see [[setScanRegion]]
335335
*/
336336
getScanRegion(): Region;
337-
/**
338-
* Decide What size the layers should be created.
339-
* When returned 'null', it means something gets wrong.
340-
* @returns
341-
*/
342337
private _calculateCvsSize;
343338
/**
344339
* Add a canvas of the same size as the scan area directly above the scan area.
@@ -537,6 +532,7 @@ export default class CameraEnhancer implements ImageSource {
537532
*/
538533
static createInstance(config?: any): Promise<CameraEnhancer>;
539534
private static playVideo;
535+
private static findBestRearCameraInIOS;
540536
private static findBestRearCamera;
541537
/**
542538
*
@@ -564,6 +560,7 @@ export default class CameraEnhancer implements ImageSource {
564560
* @category Pause and Resume
565561
*/
566562
pause(): void;
563+
isPaused(): boolean;
567564
/** @ignore */
568565
_bindUI(): void;
569566
/** @ignore */
@@ -715,7 +712,7 @@ export default class CameraEnhancer implements ImageSource {
715712
* @param MediaStreamConstraints
716713
* @category Camera Settings
717714
*/
718-
updateVideoSettings(mediaStreamConstraints: any): Promise<PlayCallbackInfo | void>;
715+
updateVideoSettings(mediaStreamConstraints: MediaStreamConstraints): Promise<PlayCallbackInfo | void>;
719716
/**
720717
* Check if the camera is open.
721718
* @category Open and Close

package.json

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
{
22
"name": "dynamsoft-camera-enhancer",
3-
"version": "3.3.4",
3+
"version": "3.3.5",
44
"description": "Allow your website to easily control cameras on desktop and mobile devices.",
55
"private": false,
66
"homepage": "https://www.dynamsoft.com/camera-enhancer/docs/programming/javascript/?ver=latest",
77
"main": "dist/dce.js",
88
"module": "dist/dce.mjs",
99
"exports": {
10-
"import": "./dist/dce.esm.js",
11-
"require": "./dist/dce.js"
10+
"import": {
11+
"types": "./dist/types/index.d.ts",
12+
"default": "./dist/dce.esm.js"
13+
},
14+
"require": {
15+
"types": "./dist/types/index.d.ts",
16+
"default": "./dist/dce.js"
17+
}
1218
},
1319
"sideEffects": false,
14-
"types": "dist/types/index.d.ts",
20+
"types": "./dist/types/index.d.ts",
1521
"publishConfig": {
1622
"registry": "https://registry.npmjs.org/"
1723
},

samples.url

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[InternetShortcut]
2-
URL=https://github.com/Dynamsoft/camera-enhancer-javascript-samples/tree/v3.3.4
2+
URL=https://github.com/Dynamsoft/camera-enhancer-javascript-samples/tree/v3.3.5

0 commit comments

Comments
 (0)