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

Commit

Permalink
Merge pull request #14 from Dynamsoft/_dev
Browse files Browse the repository at this point in the history
3.3.5
  • Loading branch information
Cube authored Aug 2, 2023
2 parents c9d5332 + cb5c557 commit 9064d32
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Api Reference.url
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[InternetShortcut]
URL=https://www.dynamsoft.com/camera-enhancer/docs/programming/javascript/api-reference/?ver=3.3.4
URL=https://www.dynamsoft.com/camera-enhancer/docs/programming/javascript/api-reference/?ver=3.3.5
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ The simplest way to include the SDK is to use either the [jsDelivr](https://jsde
<script src="https://unpkg.com/dynamsoft-camera-enhancer/dist/dce.js"></script>
```

> 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)
> 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)
#### Host the SDK yourself

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

```html
<script src="/dynamsoft-camera-enhancer-js-3.3.4/dist/dce.js"></script>
<script src="/dynamsoft-camera-enhancer-js-3.3.5/dist/dce.js"></script>
```

or
Expand Down Expand Up @@ -191,7 +191,7 @@ Dynamsoft.DCE.CameraEnhancer.defaultUIElementURL = "THE-URL-TO-THE-FILE";
</select>
```

> 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**.
> 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**.
## Hosting the SDK

Expand Down
4 changes: 2 additions & 2 deletions dist/dce.esm.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/dce.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/dce.mjs

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions dist/types/class/cameraenhancer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,6 @@ export default class CameraEnhancer implements ImageSource {
* @see [[setScanRegion]]
*/
getScanRegion(): Region;
/**
* Decide What size the layers should be created.
* When returned 'null', it means something gets wrong.
* @returns
*/
private _calculateCvsSize;
/**
* Add a canvas of the same size as the scan area directly above the scan area.
Expand Down Expand Up @@ -537,6 +532,7 @@ export default class CameraEnhancer implements ImageSource {
*/
static createInstance(config?: any): Promise<CameraEnhancer>;
private static playVideo;
private static findBestRearCameraInIOS;
private static findBestRearCamera;
/**
*
Expand Down Expand Up @@ -564,6 +560,7 @@ export default class CameraEnhancer implements ImageSource {
* @category Pause and Resume
*/
pause(): void;
isPaused(): boolean;
/** @ignore */
_bindUI(): void;
/** @ignore */
Expand Down Expand Up @@ -715,7 +712,7 @@ export default class CameraEnhancer implements ImageSource {
* @param MediaStreamConstraints
* @category Camera Settings
*/
updateVideoSettings(mediaStreamConstraints: any): Promise<PlayCallbackInfo | void>;
updateVideoSettings(mediaStreamConstraints: MediaStreamConstraints): Promise<PlayCallbackInfo | void>;
/**
* Check if the camera is open.
* @category Open and Close
Expand Down
14 changes: 10 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
{
"name": "dynamsoft-camera-enhancer",
"version": "3.3.4",
"version": "3.3.5",
"description": "Allow your website to easily control cameras on desktop and mobile devices.",
"private": false,
"homepage": "https://www.dynamsoft.com/camera-enhancer/docs/programming/javascript/?ver=latest",
"main": "dist/dce.js",
"module": "dist/dce.mjs",
"exports": {
"import": "./dist/dce.esm.js",
"require": "./dist/dce.js"
"import": {
"types": "./dist/types/index.d.ts",
"default": "./dist/dce.esm.js"
},
"require": {
"types": "./dist/types/index.d.ts",
"default": "./dist/dce.js"
}
},
"sideEffects": false,
"types": "dist/types/index.d.ts",
"types": "./dist/types/index.d.ts",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
Expand Down
2 changes: 1 addition & 1 deletion samples.url
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[InternetShortcut]
URL=https://github.com/Dynamsoft/camera-enhancer-javascript-samples/tree/v3.3.4
URL=https://github.com/Dynamsoft/camera-enhancer-javascript-samples/tree/v3.3.5

0 comments on commit 9064d32

Please sign in to comment.