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

Commit f29104d

Browse files
4.0.2
1 parent 41faad3 commit f29104d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

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

LEGAL.txt

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
===================================================================================
2+
>>>>>>>>>>>>>>>>>>>>>>>>>>>> dynamsoft-camera-enhancer <<<<<<<<<<<<<<<<<<<<<<<<<<<<
3+
===================================================================================
4+
15
Legal Notices:
26

37
This SDK contains parts of following softwares which are used under license.
@@ -22,12 +26,3 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2226
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2327
SOFTWARE.
2428
===================================================================================
25-
26-
===================================================================================
27-
howler
28-
29-
Copyright (c) 2013-2020 James Simpson and GoldFire Studios, Inc.
30-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
31-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
32-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33-
===================================================================================

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,23 @@ The simplest way to include the SDK is to use a CDN such as [jsDelivr](https://j
4545
- jsDelivr
4646

4747
```html
48-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-core@3.0.30/dist/core.js"></script>
49-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-license@3.0.20/dist/license.js"></script>
50-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@4.0.1/dist/dce.js"></script>
48+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-core@3.2.10/dist/js"></script>
49+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-license@3.2.10/dist/license.js"></script>
50+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-camera-enhancer@4.0.2/dist/dce.js"></script>
5151
```
5252

5353
- UNPKG
5454

5555
```html
56-
<script src="https://unpkg.com/dynamsoft-core@3.0.30/dist/core.js"></script>
57-
<script src="https://unpkg.com/dynamsoft-license@3.0.20/dist/license.js"></script>
58-
<script src="https://unpkg.com/dynamsoft-camera-enhancer@4.0.1/dist/dce.js"></script>
56+
<script src="https://unpkg.com/dynamsoft-core@3.2.10/dist/js"></script>
57+
<script src="https://unpkg.com/dynamsoft-license@3.2.10/dist/license.js"></script>
58+
<script src="https://unpkg.com/dynamsoft-camera-enhancer@4.0.2/dist/dce.js"></script>
5959
```
6060

6161
> In some rare cases, you might not be able to access the CDN. If this happens, you can use
62-
>- [https://download2.dynamsoft.com/packages/dynamsoft-core@3.0.30/dist/core.js](https://download2.dynamsoft.com/packages/dynamsoft-core@3.0.30/dist/core.js)
63-
>- [https://download2.dynamsoft.com/packages/dynamsoft-license@3.0.20/dist/license.js](https://download2.dynamsoft.com/packages/dynamsoft-license@3.0.20/dist/license.js)
64-
>- [https://download2.dynamsoft.com/packages/dynamsoft-camera-enhancer@4.0.1/dist/dce.js](https://download2.dynamsoft.com/packages/dynamsoft-camera-enhancer@4.0.1/dist/dce.js)
62+
>- [https://download2.dynamsoft.com/packages/dynamsoft-core@3.2.10/dist/js](https://download2.dynamsoft.com/packages/dynamsoft-core@3.2.10/dist/js)
63+
>- [https://download2.dynamsoft.com/packages/dynamsoft-license@3.2.10/dist/license.js](https://download2.dynamsoft.com/packages/dynamsoft-license@3.2.10/dist/license.js)
64+
>- [https://download2.dynamsoft.com/packages/dynamsoft-camera-enhancer@4.0.2/dist/dce.js](https://download2.dynamsoft.com/packages/dynamsoft-camera-enhancer@4.0.2/dist/dce.js)
6565
6666
#### Host the SDK yourself
6767

@@ -90,14 +90,14 @@ The following shows a few ways to download the SDK.
9090
Depending on how you downloaded the SDK and where you put it. You can typically include it like this:
9191

9292
```html
93-
<script src="./dynamsoft-camera-enhancer-js-4.0.1/dynamsoft/distributables/dynamsoft-core@3.0.30/dist/core.js"></script>
94-
<script src="./dynamsoft-camera-enhancer-js-4.0.1/dynamsoft/distributables/dynamsoft-camera-enhancer@4.0.1/dist/dce.js"></script>
93+
<script src="./dynamsoft-camera-enhancer-js-4.0.2/dynamsoft/distributables/dynamsoft-core@3.2.10/dist/js"></script>
94+
<script src="./dynamsoft-camera-enhancer-js-4.0.2/dynamsoft/distributables/dynamsoft-camera-enhancer@4.0.2/dist/dce.js"></script>
9595
```
9696

9797
or
9898

9999
```html
100-
<script src="./node_modules/dynamsoft-core/dist/core.js"></script>
100+
<script src="./node_modules/dynamsoft-core/dist/js"></script>
101101
<script src="./node_modules/dynamsoft-camera-enhancer/dist/dce.js"></script>
102102
```
103103

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.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
export declare class CameraEnhancerModule {
22
static getVersion(): string;
33
}
4-
//# sourceMappingURL=CameraEnhancerModule.d.ts.map

dist/types/class/CameraView.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,4 +226,3 @@ export declare class CameraView extends View {
226226
*/
227227
dispose(): void;
228228
}
229-
//# sourceMappingURL=CameraView.d.ts.map

dist/types/class/DrawingStyleManager.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ export declare class DrawingStyleManager {
1616
static createDrawingStyle(styleDefinition: DrawingStyle): number;
1717
private static _getDrawingStyle;
1818
static getDrawingStyle(styleId: number): DrawingStyle;
19-
static getDrawingStyles(): Array<DrawingStyle>;
19+
static getAllDrawingStyles(): Array<DrawingStyle>;
2020
private static _updateDrawingStyle;
2121
static updateDrawingStyle(styleId: number, styleDefinition: DrawingStyle): void;
2222
}
23-
//# sourceMappingURL=DrawingStyleManager.d.ts.map

dist/types/class/Feedback.d.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
export declare class Feedback {
22
#private;
3+
static beepSoundSource: string;
4+
static beep(): void;
35
static vibrateDuration: number;
4-
static get beepSoundSource(): string;
5-
static set beepSoundSource(value: string);
66
static vibrate(): void;
7-
static beep(): void;
87
}
9-
//# sourceMappingURL=Feedback.d.ts.map

dist/types/class/ImageEditorView.d.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { DSImageData } from "dynamsoft-core";
22
import { View } from "./View";
3-
import DrawingLayer from "./drawinglayer";
3+
import { DrawingLayer } from "./DrawingLayer";
44
export declare class ImageEditorView extends View {
55
#private;
66
static createInstance(elementOrUrl?: HTMLElement | string): Promise<ImageEditorView>;
@@ -9,6 +9,10 @@ export declare class ImageEditorView extends View {
99
* @ignore
1010
*/
1111
containerClassName: string;
12+
/**
13+
* @ignore
14+
*/
15+
isUseMagnifier: boolean;
1216
get disposed(): boolean;
1317
private constructor();
1418
private _setUIElement;
@@ -62,4 +66,3 @@ export declare class ImageEditorView extends View {
6266
_createDrawingLayer(drawingLayerId: number, width?: number, height?: number, objectFit?: string): DrawingLayer;
6367
dispose(): void;
6468
}
65-
//# sourceMappingURL=ImageEditorView.d.ts.map

dist/types/class/InnerComponent.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ export declare class InnerComponent extends HTMLElement {
66
getElement(slot: "content" | "single-frame-input-container" | "drawing-layer"): HTMLElement;
77
removeElement(slot: "content" | "single-frame-input-container" | "drawing-layer"): void;
88
}
9-
//# sourceMappingURL=InnerComponent.d.ts.map

dist/types/class/Magnifier.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
export declare class Magnifier {
2+
#private;
3+
get magnifierCanvas(): HTMLCanvasElement;
4+
constructor();
5+
update(magnifierSize: number, centerPoint: {
6+
x: number;
7+
y: number;
8+
}, magnifiedRegionSize: number, magnifiedImages: Array<{
9+
image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageBitmap;
10+
width: number;
11+
height: number;
12+
}>): void;
13+
show(): void;
14+
hide(): void;
15+
}

dist/types/class/TimeCharger.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ export declare class TimeCharger {
55
startCharging(): void;
66
stopCharging(): void;
77
}
8-
//# sourceMappingURL=TimeCharger.d.ts.map

dist/types/class/View.d.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import DrawingLayer from "./drawinglayer";
2-
import { DrawingLayersManager } from "./drawinglayermanager";
1+
import { DrawingLayer } from "./DrawingLayer";
2+
import { DrawingLayerManager } from "./DrawingLayerManager";
33
import { InnerComponent } from "./InnerComponent";
4-
import { DT_Text } from "./drawingItem";
4+
import { DrawingItem, DT_Text } from "./DrawingItem";
55
import { TipConfig } from "../interface";
66
declare class DT_Tip extends DT_Text {
77
#private;
@@ -20,7 +20,7 @@ export declare abstract class View {
2020
*/
2121
_innerComponent: InnerComponent;
2222
/** @ignore */
23-
_drawingLayersManager: DrawingLayersManager;
23+
_drawingLayerManager: DrawingLayerManager;
2424
/** @ignore */
2525
_layerBaseCvs: HTMLCanvasElement;
2626
/** @ignore */
@@ -65,12 +65,11 @@ export declare abstract class View {
6565
height: number;
6666
objectFit: string;
6767
}): void;
68-
getSelectedDrawingItems(): any[];
68+
getSelectedDrawingItems(): Array<DrawingItem>;
6969
setTipConfig(tipConfig: TipConfig): void;
7070
getTipConfig(): TipConfig;
7171
setTipVisible(visible: boolean): void;
7272
isTipVisible(): boolean;
7373
updateTipMessage(message: string): void;
7474
}
7575
export {};
76-
//# sourceMappingURL=View.d.ts.map

dist/types/class/cameraenhancer.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export declare class CameraEnhancer extends ImageSourceAdapter {
3333
/**
3434
* @ignore
3535
*/
36-
_imageDataGetter: any;
36+
private _imageDataGetter;
3737
/**
3838
* @ignore
3939
*/
@@ -193,4 +193,3 @@ export declare class CameraEnhancer extends ImageSourceAdapter {
193193
convertToClientCoordinates(point: Point): Point;
194194
dispose(): void;
195195
}
196-
//# sourceMappingURL=CameraEnhancer.d.ts.map

dist/types/class/drawingItem/arc.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Arc } from "dynamsoft-core";
2-
import { DrawingItem } from "./drawingitem";
2+
import { DrawingItem } from "./DrawingItem";
33
export declare class DT_Arc extends DrawingItem {
44
#private;
55
constructor(arc: Arc, drawingStyleId?: number);
@@ -13,4 +13,3 @@ export declare class DT_Arc extends DrawingItem {
1313
setArc(arc: Arc): void;
1414
getArc(): Arc;
1515
}
16-
//# sourceMappingURL=arc.d.ts.map

dist/types/class/drawingItem/drawingitem.d.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
import { Note, DrawingItemEvent } from "../../interface";
22
import { EnumDrawingItemState, EnumDrawingItemMediaType } from "../../enum";
3-
export declare enum EnumItemType {
4-
ARC = "arc",
5-
IMAGE = "image",
6-
LINE = "line",
7-
POLYGON = "polygon",
8-
QUAD = "quad",
9-
RECT = "rect",
10-
TEXT = "text",
11-
GROUP = "group"
3+
declare enum EnumItemType {
4+
ARC = 0,
5+
IMAGE = 1,
6+
LINE = 2,
7+
POLYGON = 3,
8+
QUAD = 4,
9+
RECT = 5,
10+
TEXT = 6,
11+
GROUP = 7
1212
}
13-
export declare enum EnumItemState {
14-
DEFAULT = "default",
15-
SELECTED = "selected"
13+
declare enum EnumItemState {
14+
DEFAULT = 0,
15+
SELECTED = 1
1616
}
1717
export declare abstract class DrawingItem {
1818
#private;
@@ -131,4 +131,4 @@ export declare abstract class DrawingItem {
131131
*/
132132
abstract updatePosition(): void;
133133
}
134-
//# sourceMappingURL=drawingitem.d.ts.map
134+
export {};

dist/types/class/drawingItem/group.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DrawingItem } from "./drawingitem";
1+
import { DrawingItem } from "./DrawingItem";
22
export declare class DT_Group extends DrawingItem {
33
constructor(childItems: Array<DrawingItem>);
44
protected extendSet(property: string, value: any): boolean;
@@ -12,4 +12,3 @@ export declare class DT_Group extends DrawingItem {
1212
setChildDrawingItems(item: DrawingItem): void;
1313
removeChildItem(item: DrawingItem): void;
1414
}
15-
//# sourceMappingURL=group.d.ts.map

dist/types/class/drawingItem/image.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { DSImageData, Rect } from "dynamsoft-core";
2-
import { DrawingItem } from "./drawingitem";
2+
import { DrawingItem } from "./DrawingItem";
33
export declare class DT_Image extends DrawingItem {
44
#private;
55
private image;
@@ -18,4 +18,3 @@ export declare class DT_Image extends DrawingItem {
1818
setImageRect(rect: Rect): void;
1919
getImageRect(): Rect;
2020
}
21-
//# sourceMappingURL=image.d.ts.map
Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
export { DrawingItem } from './drawingitem';
2-
export { DT_Rect } from './rect';
3-
export { DT_Arc } from './arc';
4-
export { DT_Polygon } from './polygon';
5-
export { DT_Image } from './image';
6-
export { DT_Text } from './text';
7-
export { DT_Line } from './line';
8-
export { DT_Quad } from './quad';
9-
export { DT_Group } from './group';
10-
//# sourceMappingURL=index.d.ts.map
1+
export { DrawingItem } from "./DrawingItem";
2+
export { DT_Rect } from "./Rect";
3+
export { DT_Arc } from "./Arc";
4+
export { DT_Polygon } from "./Polygon";
5+
export { DT_Image } from "./Image";
6+
export { DT_Text } from "./Text";
7+
export { DT_Line } from "./Line";
8+
export { DT_Quad } from "./Quad";
9+
export { DT_Group } from "./Group";

dist/types/class/drawingItem/line.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DT_Polygon } from "./polygon";
1+
import { DT_Polygon } from "./Polygon";
22
import { LineSegment, Polygon } from "dynamsoft-core";
33
export declare class DT_Line extends DT_Polygon {
44
#private;
@@ -21,4 +21,3 @@ export declare class DT_Line extends DT_Polygon {
2121
setLine(line: LineSegment): void;
2222
getLine(): LineSegment;
2323
}
24-
//# sourceMappingURL=line.d.ts.map

dist/types/class/drawingItem/polygon.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { fabric } from "dm-fabric";
2-
import { DrawingItem } from "./drawingitem";
2+
import { DrawingItem } from "./DrawingItem";
33
import { Polygon } from "dynamsoft-core";
44
export declare function polygonPositionHandler(dim: any, finalMatrix: any, fabricObject: any): fabric.Point;
55
export declare function actionHandler(eventData: any, transform: any, x: any, y: any): boolean;
@@ -17,4 +17,3 @@ export declare class DT_Polygon extends DrawingItem {
1717
setPolygon(polygon: Polygon): void;
1818
getPolygon(): Polygon;
1919
}
20-
//# sourceMappingURL=polygon.d.ts.map

dist/types/class/drawingItem/quad.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Polygon, Quadrilateral } from "dynamsoft-core";
2-
import { DT_Polygon } from "./polygon";
2+
import { DT_Polygon } from "./Polygon";
33
export declare class DT_Quad extends DT_Polygon {
44
#private;
55
constructor(quad: Quadrilateral, drawingStyleId?: number);
@@ -17,4 +17,3 @@ export declare class DT_Quad extends DT_Polygon {
1717
setQuad(quad: Quadrilateral): void;
1818
getQuad(): Quadrilateral;
1919
}
20-
//# sourceMappingURL=quad.d.ts.map

dist/types/class/drawingItem/rect.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Rect } from "dynamsoft-core";
2-
import { DrawingItem } from "./drawingitem";
2+
import { DrawingItem } from "./DrawingItem";
33
export declare class DT_Rect extends DrawingItem {
44
#private;
55
constructor(rect: Rect, drawingStyleId?: number);
@@ -13,4 +13,3 @@ export declare class DT_Rect extends DrawingItem {
1313
setRect(rect: Rect): void;
1414
getRect(): Rect;
1515
}
16-
//# sourceMappingURL=rect.d.ts.map

dist/types/class/drawingItem/text.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Rect } from "dynamsoft-core";
2-
import { DrawingItem } from "./drawingitem";
2+
import { DrawingItem } from "./DrawingItem";
33
export declare class DT_Text extends DrawingItem {
44
#private;
55
private _text;
@@ -16,4 +16,3 @@ export declare class DT_Text extends DrawingItem {
1616
setTextRect(rect: Rect): void;
1717
getTextRect(): Rect;
1818
}
19-
//# sourceMappingURL=text.d.ts.map

dist/types/class/drawinglayer.d.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { fabric } from "dm-fabric";
2-
import { DrawingItem } from "./drawingItem";
2+
import { DrawingItem } from "./DrawingItem";
33
import { EnumDrawingItemState, EnumDrawingItemMediaType } from "../enum";
4-
export default class DrawingLayer {
4+
export declare class DrawingLayer {
55
static DDN_LAYER_ID: number;
66
static DBR_LAYER_ID: number;
77
static DLR_LAYER_ID: number;
@@ -100,4 +100,3 @@ export default class DrawingLayer {
100100
renderAll(): void;
101101
dispose(): void;
102102
}
103-
//# sourceMappingURL=drawinglayer.d.ts.map

0 commit comments

Comments
 (0)