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

Commit cb77503

Browse files
author
Cube
authored
Merge pull request #11 from Dynamsoft/_dev
3.3.2
2 parents 6c00165 + afec249 commit cb77503

File tree

8 files changed

+45
-30
lines changed

8 files changed

+45
-30
lines changed

Api Reference.url

Lines changed: 1 addition & 1 deletion
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.1
2+
URL=https://www.dynamsoft.com/camera-enhancer/docs/programming/javascript/api-reference/?ver=3.3.2

README.md

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,19 @@ Once integrated, your users can open your website in a browser, access their cam
1313
1414
In this guide, you will learn step by step on how to integrate the Dynamsoft Camera Enhancer SDK into your website.
1515

16-
- [Dynamsoft Camera Enhancer for Your Website](#dynamsoft-camera-enhancer-for-your-website)
17-
- [Getting Started](#getting-started)
18-
- [Include the SDK](#include-the-sdk)
19-
- [Use a CDN](#use-a-cdn)
20-
- [Host the SDK yourself](#host-the-sdk-yourself)
21-
- [Interact with the SDK](#interact-with-the-sdk)
22-
- [Create a `CameraEnhancer` object](#create-a-cameraenhancer-object)
23-
- [Configure the `CameraEnhancer` object](#configure-the-cameraenhancer-object)
24-
- [Customize the UI](#customize-the-ui)
25-
- [Hosting the SDK](#hosting-the-sdk)
26-
- [Step One: Deploy the dist folder](#step-one-deploy-the-dist-folder)
27-
- [Step Two: Configure the Server](#step-two-configure-the-server)
28-
- [Step Three: Include the SDK from the server](#step-three-include-the-sdk-from-the-server)
29-
- [FAQ](#faq)
30-
- [Can I open the web page directly from the hard drive?](#can-i-open-the-web-page-directly-from-the-hard-drive)
31-
- [Why can't I use my camera?](#why-cant-i-use-my-camera)
32-
- [API Documentation](#api-documentation)
33-
- [Release Notes](#release-notes)
34-
- [Next Steps](#next-steps)
16+
- [Getting Started](#getting-started)
17+
- [Include the SDK](#include-the-sdk)
18+
- [Interact with the SDK](#interact-with-the-sdk)
19+
- [Hosting the SDK](#hosting-the-sdk)
20+
- [Step One: Deploy the dist folder](#step-one-deploy-the-dist-folder)
21+
- [Step Two: Configure the Server](#step-two-configure-the-server)
22+
- [Step Three: Include the SDK from the server](#step-three-include-the-sdk-from-the-server)
23+
- [FAQ](#faq)
24+
- [Can I open the web page directly from the hard drive?](#can-i-open-the-web-page-directly-from-the-hard-drive)
25+
- [Why can't I use my camera?](#why-cant-i-use-my-camera)
26+
- [API Documentation](#api-documentation)
27+
- [Release Notes](#release-notes)
28+
- [Next Steps](#next-steps)
3529

3630
## Getting Started
3731

@@ -53,7 +47,7 @@ The simplest way to include the SDK is to use either the [jsDelivr](https://jsde
5347
<script src="https://unpkg.com/dynamsoft-camera-enhancer/dist/dce.js"></script>
5448
```
5549

56-
> 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.1/dist/dce.js](https://download2.dynamsoft.com/dce/dynamsoft-camera-enhancer-js/dynamsoft-camera-enhancer-js-3.3.1/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.2/dist/dce.js](https://download2.dynamsoft.com/dce/dynamsoft-camera-enhancer-js/dynamsoft-camera-enhancer-js-3.3.2/dist/dce.js)
5751
5852
#### Host the SDK yourself
5953

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

8276
```html
83-
<script src="/dynamsoft-camera-enhancer-js-3.3.1/dist/dce.js"></script>
77+
<script src="/dynamsoft-camera-enhancer-js-3.3.2/dist/dce.js"></script>
8478
```
8579

8680
or

dist/dce.esm.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dce.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dce.mjs

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

dist/types/class/cameraenhancer.d.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,27 @@ export default class CameraEnhancer implements ImageSource {
10381038
showOriginalImage(): void;
10391039
private _hideOriginalImage;
10401040
hideOriginalImage(): Promise<void>;
1041+
/**
1042+
* Transform the coordinates from related to the video to related to the viewport and document.
1043+
* @param coord
1044+
* @returns
1045+
* @private
1046+
*/
1047+
private transformCoord;
1048+
convertToPageCoordinates(point: {
1049+
x: number;
1050+
y: number;
1051+
}): {
1052+
x: number;
1053+
y: number;
1054+
};
1055+
convertToClientCoordinates(point: {
1056+
x: number;
1057+
y: number;
1058+
}): {
1059+
x: number;
1060+
y: number;
1061+
};
10411062
/**
10421063
* Releases all resources used by the 'CameraEnhancer' instance.
10431064
* @param removeUIElement When true, remove the UIElement from DOM.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dynamsoft-camera-enhancer",
3-
"version": "3.3.1",
3+
"version": "3.3.2",
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",

samples.url

Lines changed: 1 addition & 1 deletion
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.1
2+
URL=https://github.com/Dynamsoft/camera-enhancer-javascript-samples/tree/v3.3.2

0 commit comments

Comments
 (0)