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

Commit 0c30a54

Browse files
3.3.10
1 parent aa619ad commit 0c30a54

38 files changed

+75
-74
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ yarn-error.log*
2121
*.sln
2222
*.sw?
2323
*.map
24+
*.properties
2425

2526
__pycache__
2627
~~*

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.9
2+
URL=https://www.dynamsoft.com/camera-enhancer/docs/programming/javascript/api-reference/?ver=3.3.10

LEGAL.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
===================================================================================
2+
>>>>>>>>>>>>>>>>>>>>>>>>>>> dynamsoft-camera-enhancer <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
3+
===================================================================================
4+
5+
Legal Notices:
6+
7+
This SDK contains parts of following softwares which are used under license.
8+
9+
===================================================================================
10+
fabric.js
11+
12+
Copyright (c) 2008-2015 Printio (Juriy Zaytsev, Maxim Chernyak)
13+
14+
Permission is hereby granted, free of charge, to any person obtaining a copy
15+
of this software and associated documentation files (the "Software"), to deal
16+
in the Software without restriction, including without limitation the rights
17+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18+
copies of the Software, and to permit persons to whom the Software is
19+
furnished to do so, subject to the following conditions:
20+
21+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23+
FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE
24+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27+
SOFTWARE.
28+
===================================================================================

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright © 2003–2023 Dynamsoft. All Rights Reserved.
1+
Copyright © 2003–2024 Dynamsoft. All Rights Reserved.
22

33
The use of this software is governed by the Dynamsoft Terms and Conditions.
44
https://www.dynamsoft.com/company/license-agreement/

README.md

Lines changed: 2 additions & 2 deletions
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@3/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.9/dist/dce.js](https://download2.dynamsoft.com/dce/dynamsoft-camera-enhancer-js/dynamsoft-camera-enhancer-js-3.3.9/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.10/dist/dce.js](https://download2.dynamsoft.com/dce/dynamsoft-camera-enhancer-js/dynamsoft-camera-enhancer-js-3.3.10/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.9/dist/dce.js"></script>
77+
<script src="/dynamsoft-camera-enhancer-js-3.3.10/dist/dce.js"></script>
7878
```
7979

8080
or

dist/dce.esm.js

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

dist/dce.js

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

dist/dce.mjs

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

dist/types/class/cameraenhancer.d.ts

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ import { ImageSource } from '../interface/imagesource';
77
import { DSImage } from '../interface/dsimage';
88
import { Controler } from './controler';
99
import { Warning } from '../interface/warning';
10-
declare type PixelFormat = "grey" | "grey32" | "rgba" | "rbga" | "grba" | "gbra" | "brga" | "bgra";
11-
export default class CameraEnhancer implements ImageSource {
10+
import { DrawingLayer } from "./drawinglayer";
11+
import { DrawingStyle } from "../interface/drawingstyle";
12+
type PixelFormat = "grey" | "grey32" | "rgba" | "rbga" | "grba" | "gbra" | "brga" | "bgra";
13+
export declare class CameraEnhancer implements ImageSource {
1214
private static _jsVersion;
1315
private static _jsEditVersion;
1416
private static _version;
@@ -202,6 +204,10 @@ export default class CameraEnhancer implements ImageSource {
202204
* Set src to video element to play static video.
203205
*/
204206
videoSrc: string | MediaStream | MediaSource | Blob;
207+
/**
208+
* Sets or returns the the maximum time allowed for opening a selected camera.
209+
* @defaultValue `4000`
210+
*/
205211
cameraOpenTimeout: number;
206212
/** @ignore */
207213
videoSettings: MediaStreamConstraints;
@@ -1018,15 +1024,15 @@ export default class CameraEnhancer implements ImageSource {
10181024
* @ignore
10191025
*/
10201026
private _updateDrawingLayersSize;
1021-
_createDrawingLayer(drawingLayerId?: number): import("./drawinglayer").default;
1027+
_createDrawingLayer(drawingLayerId?: number): DrawingLayer;
10221028
deleteDrawingLayer(drawingLayerId: number): void;
1023-
createDrawingLayer(): import("./drawinglayer").default;
1024-
getDrawingLayer(drawingLayerId: number): import("./drawinglayer").default;
1025-
getDrawingLayers(): import("./drawinglayer").default[];
1029+
createDrawingLayer(): DrawingLayer;
1030+
getDrawingLayer(drawingLayerId: number): DrawingLayer;
1031+
getDrawingLayers(): Array<DrawingLayer>;
10261032
getSelectedDrawingItems(): any[];
10271033
createDrawingStyle(styleDefinition: any): number;
1028-
getDrawingStyle(styleId: number): import("..").DrawingStyle;
1029-
getDrawingStyles(): import("..").DrawingStyle[];
1034+
getDrawingStyle(styleId: number): DrawingStyle;
1035+
getDrawingStyles(): Array<DrawingStyle>;
10301036
updateDrawingStyle(styleId: number, styleDefinition: any): void;
10311037
clearDrawingLayers(): void;
10321038
showTip(x: number, y: number, width: number, initialMessage?: string, duration?: number, autoShowSuggestedTip?: boolean): void;
@@ -1073,4 +1079,3 @@ export default class CameraEnhancer implements ImageSource {
10731079
dispose(removeUIElement: boolean): void;
10741080
}
10751081
export {};
1076-
//# sourceMappingURL=cameraenhancer.d.ts.map

dist/types/class/controler.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,3 @@ export declare class Controler {
9999
*/
100100
render(actionName?: string): any;
101101
}
102-
//# sourceMappingURL=controler.d.ts.map

0 commit comments

Comments
 (0)