dynamsoft-javascript-barcode
Advanced tools
Comparing version 7.4.0-v1 to 7.5.0-v0
@@ -7,7 +7,7 @@ /** | ||
* @author Dynamsoft | ||
* @version 7.4.0.1 (js 20200518) | ||
* @version 7.5.0 (js 20200605) | ||
* @fileoverview Dynamsoft JavaScript Library for Barcode Reader | ||
* More info on DBR JS: https://www.dynamsoft.com/Products/barcode-recognition-javascript.aspx | ||
*/ | ||
// Generated by dts-bundle-generator v4.0.0 | ||
// Generated by dts-bundle-generator v4.3.0 | ||
@@ -126,3 +126,4 @@ /// <reference types="node" /> | ||
SUM_NEAREST_NEIGHBOUR_INTERPOLATION = 4, | ||
SUM_SKIP = 0 | ||
SUM_SKIP = 0, | ||
SUM_REV = 2147483648 | ||
} | ||
@@ -257,9 +258,5 @@ /** | ||
static detectEnvironment(): Promise<any>; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
static _workerName: string; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
static _bUseIndexDB: boolean; | ||
@@ -278,9 +275,5 @@ protected static _engineResourcePath?: string; | ||
protected static _licenseServer?: string; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
static get licenseServer(): string; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
static set licenseServer(value: string); | ||
@@ -292,5 +285,3 @@ private static _deviceFriendlyName; | ||
static get deviceFriendlyName(): string; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
static set deviceFriendlyName(value: string); | ||
@@ -344,3 +335,5 @@ /** | ||
*/ | ||
static _bUseFullFeature: boolean; | ||
protected static __bUseFullFeature: boolean; | ||
static get _bUseFullFeature(): boolean; | ||
static set _bUseFullFeature(value: boolean); | ||
protected static _dbrWorker: Worker; | ||
@@ -351,5 +344,3 @@ protected static _nextTaskID: number; | ||
private static _loadWasmCallbackArr; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_instanceID: number; | ||
@@ -373,3 +364,19 @@ /** | ||
*/ | ||
oriCanvas?: HTMLCanvasElement; | ||
oriCanvas?: HTMLCanvasElement | OffscreenCanvas; | ||
/** @ignore */ | ||
maxVideoCvsLength: number; | ||
protected videoCvses?: (HTMLCanvasElement | OffscreenCanvas)[]; | ||
protected videoGlCvs?: HTMLCanvasElement | OffscreenCanvas; | ||
protected videoGlCtx?: WebGLRenderingContext | WebGL2RenderingContext; | ||
protected bFilterRegionInJs: boolean; | ||
protected userDefinedRegion: any; | ||
protected _region?: RegionDefinition | RegionDefinition[]; | ||
protected set region(value: null | RegionDefinition | RegionDefinition[]); | ||
protected get region(): null | RegionDefinition | RegionDefinition[]; | ||
/** @ignore */ | ||
_timeStartDecode: any; | ||
/** @ignore */ | ||
_timeEnterInnerDBR: any; | ||
/** @ignore */ | ||
_bUseWebgl: boolean; | ||
protected decodeRecords: string[]; | ||
@@ -467,5 +474,3 @@ /** | ||
decodeBuffer(buffer: Uint8Array | Uint8ClampedArray | ArrayBuffer | Blob | Buffer, width: number, height: number, stride: number, format: EnumImagePixelFormat, config?: any): Promise<any>; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_decodeFileInMemory_Uint8Array(bytes: Uint8Array): Promise<any>; | ||
@@ -484,4 +489,3 @@ /** | ||
/** | ||
* Update runtime settings with a given struct or a string of `speed`, `balance` or `coverage`. | ||
* Use `speed`, `balance` and `coverage` to use preset settings for BarcodeReader. | ||
* Update runtime settings with a given struct, or a string of `speed`, `balance` or `coverage` to use preset settings for BarcodeReader. | ||
* The default settings for BarcodeReader is `coverage`. | ||
@@ -550,3 +554,3 @@ * ```js | ||
/** | ||
* | ||
* decode video is not multi call safe in an instance, we reuse many thing for speed, so make sure wait util one finish then call next | ||
* @param video | ||
@@ -560,7 +564,5 @@ * @param config | ||
private _decode_FilePath; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
static BarcodeReaderException(ag0: any, ag1: any): Error; | ||
private _handleRetJsonString; | ||
protected _handleRetJsonString(objRet: any): any; | ||
/** | ||
@@ -598,5 +600,3 @@ * Sets the optional argument for a specified mode in Modes parameters. | ||
getIntermediateResults(): Promise<any>; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
getIntermediateCanvas(): Promise<HTMLCanvasElement[]>; | ||
@@ -666,8 +666,4 @@ /** | ||
static set defaultUIElementURL(value: string); | ||
/** | ||
* @ignore | ||
*/ | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
/** @ignore */ | ||
UIElement: HTMLElement; | ||
@@ -693,9 +689,5 @@ /** | ||
setUIElement(elementOrUrl: HTMLElement | string): Promise<void>; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
private styleEls; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
videoSettings: MediaStreamConstraints; | ||
@@ -725,5 +717,3 @@ private _singleFrameMode; | ||
private _clickIptSingleFrameMode; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
intervalTime: number; | ||
@@ -733,50 +723,26 @@ private _isOpen; | ||
private _bPauseScan; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_lastDeviceId: string; | ||
private _intervalDetectVideoPause; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_video: HTMLVideoElement; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_cvsDrawArea: HTMLCanvasElement; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_divScanArea: any; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_divScanLight: any; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_bgLoading: any; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_bgCamera: any; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_selCam: any; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_selRsl: any; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_optGotRsl: any; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_btnClose: any; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
private _soundOnSuccessfullRead; | ||
@@ -808,13 +774,7 @@ /** | ||
bPlaySoundOnSuccessfulRead: (boolean | string); | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_allCameras: VideoDeviceInfo[]; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_currentCamera?: VideoDeviceInfo; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_videoTrack: MediaStreamTrack; | ||
@@ -845,8 +805,7 @@ /** | ||
barcodeLineWidth: number; | ||
private _region; | ||
private set region(value); | ||
private get region(); | ||
/** | ||
* @ignore | ||
*/ | ||
protected beingLazyDrawRegionsults: boolean; | ||
protected set region(value: null | RegionDefinition | RegionDefinition[]); | ||
protected get region(): null | RegionDefinition | RegionDefinition[]; | ||
protected _indexVideoRegion: number; | ||
/** @ignore */ | ||
constructor(); | ||
@@ -862,22 +821,14 @@ /** | ||
static createInstance(config?: any): Promise<BarcodeScanner>; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
decode(source: Blob | ArrayBuffer | Uint8Array | Uint8ClampedArray | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | string): Promise<TextResult[]>; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
decodeBase64String(source: string): Promise<TextResult[]>; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
decodeUrl(source: string): Promise<TextResult[]>; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
decodeBuffer(buffer: Uint8Array | Uint8ClampedArray | ArrayBuffer | Blob, width: number, height: number, stride: number, format: EnumImagePixelFormat, config?: any): Promise<any>; | ||
private clearMapDecodeRecord; | ||
/** | ||
* Update runtime settings with a given struct or a string of `speed`, `balance` or `coverage`. | ||
* Use `speed`, `balance` and `coverage` to use preset settings for BarcodeScanner. | ||
* Update runtime settings with a given struct, or a string of `speed`, `balance`, `coverage` and `single`(experimental) to use preset settings for BarcodeScanner. | ||
* We recommend using the speed-optimized `single`(experimental) preset if scanning only one barcode at a time. The `single`(experimental) is only available in `BarcodeScanner`. | ||
* The default settings for BarcodeScanner is `speed`. | ||
@@ -894,21 +845,11 @@ * ```js | ||
updateRuntimeSettings(settings: RuntimeSettings | string): Promise<void>; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_onCameraSelChange: () => void; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_onResolutionSelChange: () => void; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_onCloseBtnClick: () => void; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_bindUI(): void; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_unbindUI(): void; | ||
@@ -943,5 +884,3 @@ /** | ||
onUnduplicatedRead?: (txt: string, result: TextResult) => void; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
private _renderSelCameraInfo; | ||
@@ -1038,5 +977,3 @@ /** | ||
isOpen(): boolean; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_show(): void; | ||
@@ -1100,9 +1037,5 @@ /** | ||
getCapabilities(): MediaTrackCapabilities; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
getCameraSettings(): MediaTrackSettings; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
getConstraints(): MediaTrackConstraints; | ||
@@ -1185,17 +1118,9 @@ /** | ||
setFrameRate(value: number): Promise<void>; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_cloneDecodeResults(results: any): any; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
private _loopReadVideo; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_drawRegionsults(results?: TextResult[]): void; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_clearRegionsults(): void; | ||
@@ -1246,3 +1171,4 @@ /** | ||
BICM_DARK_ON_LIGHT_DARK_SURROUNDING = 32, | ||
BICM_SKIP = 0 | ||
BICM_SKIP = 0, | ||
BICM_REV = 2147483648 | ||
} | ||
@@ -1252,3 +1178,4 @@ export declare enum EnumBarcodeComplementMode { | ||
BCM_GENERAL = 2, | ||
BCM_SKIP = 0 | ||
BCM_SKIP = 0, | ||
BCM_REV = 2147483648 | ||
} | ||
@@ -1269,3 +1196,5 @@ export declare enum EnumBarcodeFormat_2 { | ||
BM_LOCAL_BLOCK = 2, | ||
BM_SKIP = 0 | ||
BM_SKIP = 0, | ||
BM_THRESHOLD = 4, | ||
BM_REV = 2147483648 | ||
} | ||
@@ -1281,7 +1210,9 @@ export declare enum EnumClarityCalculationMethod { | ||
CCM_GENERAL_HSV = 2, | ||
CCM_SKIP = 0 | ||
CCM_SKIP = 0, | ||
CCM_REV = 2147483648 | ||
} | ||
export declare enum EnumColourConversionMode { | ||
CICM_GENERAL = 1, | ||
CICM_SKIP = 0 | ||
CICM_SKIP = 0, | ||
CICM_REV = 2147483648 | ||
} | ||
@@ -1295,3 +1226,4 @@ export declare enum EnumConflictMode { | ||
DRM_GENERAL = 2, | ||
DRM_SKIP = 0 | ||
DRM_SKIP = 0, | ||
DRM_REV = 2147483648 | ||
} | ||
@@ -1301,3 +1233,4 @@ export declare enum EnumDPMCodeReadingMode { | ||
DPMCRM_GENERAL = 2, | ||
DPMCRM_SKIP = 0 | ||
DPMCRM_SKIP = 0, | ||
DPMCRM_REV = 2147483648 | ||
} | ||
@@ -1367,3 +1300,4 @@ export declare enum EnumErrorCode { | ||
GTM_ORIGINAL = 2, | ||
GTM_SKIP = 0 | ||
GTM_SKIP = 0, | ||
GTM_REV = 2147483648 | ||
} | ||
@@ -1377,3 +1311,4 @@ export declare enum EnumImagePreprocessingMode { | ||
IPM_MORPHOLOGY = 32, | ||
IPM_SKIP = 0 | ||
IPM_SKIP = 0, | ||
IPM_REV = 2147483648 | ||
} | ||
@@ -1418,3 +1353,5 @@ export declare enum EnumIMResultDataType { | ||
LM_STATISTICS_MARKS = 32, | ||
LM_STATISTICS_POSTAL_CODE = 64 | ||
LM_STATISTICS_POSTAL_CODE = 64, | ||
LM_CENTRE = 128, | ||
LM_REV = 2147483648 | ||
} | ||
@@ -1424,3 +1361,4 @@ export declare enum EnumPDFReadingMode { | ||
PDFRM_AUTO = 2, | ||
PDFRM_VECTOR = 4 | ||
PDFRM_VECTOR = 4, | ||
PDFRM_REV = 2147483648 | ||
} | ||
@@ -1439,3 +1377,4 @@ export declare enum EnumQRCodeErrorCorrectionLevel { | ||
RPM_GENERAL_HSV_CONTRAST = 16, | ||
RPM_SKIP = 0 | ||
RPM_SKIP = 0, | ||
RPM_REV = 2147483648 | ||
} | ||
@@ -1464,3 +1403,4 @@ export declare enum EnumResultCoordinateType { | ||
TACM_VERIFYING_PATCHING = 4, | ||
TACM_SKIP = 0 | ||
TACM_SKIP = 0, | ||
TACM_REV = 2147483648 | ||
} | ||
@@ -1470,3 +1410,4 @@ export declare enum EnumTextFilterMode { | ||
TFM_GENERAL_CONTOUR = 2, | ||
TFM_SKIP = 0 | ||
TFM_SKIP = 0, | ||
TFM_REV = 2147483648 | ||
} | ||
@@ -1477,3 +1418,4 @@ export declare enum EnumTextResultOrderMode { | ||
TROM_FORMAT = 4, | ||
TROM_SKIP = 0 | ||
TROM_SKIP = 0, | ||
TROM_REV = 2147483648 | ||
} | ||
@@ -1483,3 +1425,4 @@ export declare enum EnumTextureDetectionMode { | ||
TDM_GENERAL_WIDTH_CONCENTRATION = 2, | ||
TDM_SKIP = 0 | ||
TDM_SKIP = 0, | ||
TDM_REV = 2147483648 | ||
} | ||
@@ -1486,0 +1429,0 @@ declare const Dynamsoft: { |
@@ -7,7 +7,7 @@ /** | ||
* @author Dynamsoft | ||
* @version 7.4.0.1 (js 20200518) | ||
* @version 7.5.0 (js 20200605) | ||
* @fileoverview Dynamsoft JavaScript Library for Barcode Reader | ||
* More info on DBR JS: https://www.dynamsoft.com/Products/barcode-recognition-javascript.aspx | ||
*/ | ||
// Generated by dts-bundle-generator v4.0.0 | ||
// Generated by dts-bundle-generator v4.3.0 | ||
@@ -126,3 +126,4 @@ /// <reference types="node" /> | ||
SUM_NEAREST_NEIGHBOUR_INTERPOLATION = 4, | ||
SUM_SKIP = 0 | ||
SUM_SKIP = 0, | ||
SUM_REV = 2147483648 | ||
} | ||
@@ -257,9 +258,5 @@ /** | ||
static detectEnvironment(): Promise<any>; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
static _workerName: string; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
static _bUseIndexDB: boolean; | ||
@@ -278,9 +275,5 @@ protected static _engineResourcePath?: string; | ||
protected static _licenseServer?: string; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
static get licenseServer(): string; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
static set licenseServer(value: string); | ||
@@ -292,5 +285,3 @@ private static _deviceFriendlyName; | ||
static get deviceFriendlyName(): string; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
static set deviceFriendlyName(value: string); | ||
@@ -344,3 +335,5 @@ /** | ||
*/ | ||
static _bUseFullFeature: boolean; | ||
protected static __bUseFullFeature: boolean; | ||
static get _bUseFullFeature(): boolean; | ||
static set _bUseFullFeature(value: boolean); | ||
protected static _dbrWorker: Worker; | ||
@@ -351,5 +344,3 @@ protected static _nextTaskID: number; | ||
private static _loadWasmCallbackArr; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_instanceID: number; | ||
@@ -373,3 +364,19 @@ /** | ||
*/ | ||
oriCanvas?: HTMLCanvasElement; | ||
oriCanvas?: HTMLCanvasElement | OffscreenCanvas; | ||
/** @ignore */ | ||
maxVideoCvsLength: number; | ||
protected videoCvses?: (HTMLCanvasElement | OffscreenCanvas)[]; | ||
protected videoGlCvs?: HTMLCanvasElement | OffscreenCanvas; | ||
protected videoGlCtx?: WebGLRenderingContext | WebGL2RenderingContext; | ||
protected bFilterRegionInJs: boolean; | ||
protected userDefinedRegion: any; | ||
protected _region?: RegionDefinition | RegionDefinition[]; | ||
protected set region(value: null | RegionDefinition | RegionDefinition[]); | ||
protected get region(): null | RegionDefinition | RegionDefinition[]; | ||
/** @ignore */ | ||
_timeStartDecode: any; | ||
/** @ignore */ | ||
_timeEnterInnerDBR: any; | ||
/** @ignore */ | ||
_bUseWebgl: boolean; | ||
protected decodeRecords: string[]; | ||
@@ -467,5 +474,3 @@ /** | ||
decodeBuffer(buffer: Uint8Array | Uint8ClampedArray | ArrayBuffer | Blob | Buffer, width: number, height: number, stride: number, format: EnumImagePixelFormat, config?: any): Promise<any>; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_decodeFileInMemory_Uint8Array(bytes: Uint8Array): Promise<any>; | ||
@@ -484,4 +489,3 @@ /** | ||
/** | ||
* Update runtime settings with a given struct or a string of `speed`, `balance` or `coverage`. | ||
* Use `speed`, `balance` and `coverage` to use preset settings for BarcodeReader. | ||
* Update runtime settings with a given struct, or a string of `speed`, `balance` or `coverage` to use preset settings for BarcodeReader. | ||
* The default settings for BarcodeReader is `coverage`. | ||
@@ -550,3 +554,3 @@ * ```js | ||
/** | ||
* | ||
* decode video is not multi call safe in an instance, we reuse many thing for speed, so make sure wait util one finish then call next | ||
* @param video | ||
@@ -560,7 +564,5 @@ * @param config | ||
private _decode_FilePath; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
static BarcodeReaderException(ag0: any, ag1: any): Error; | ||
private _handleRetJsonString; | ||
protected _handleRetJsonString(objRet: any): any; | ||
/** | ||
@@ -598,5 +600,3 @@ * Sets the optional argument for a specified mode in Modes parameters. | ||
getIntermediateResults(): Promise<any>; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
getIntermediateCanvas(): Promise<HTMLCanvasElement[]>; | ||
@@ -666,8 +666,4 @@ /** | ||
static set defaultUIElementURL(value: string); | ||
/** | ||
* @ignore | ||
*/ | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
/** @ignore */ | ||
UIElement: HTMLElement; | ||
@@ -693,9 +689,5 @@ /** | ||
setUIElement(elementOrUrl: HTMLElement | string): Promise<void>; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
private styleEls; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
videoSettings: MediaStreamConstraints; | ||
@@ -725,5 +717,3 @@ private _singleFrameMode; | ||
private _clickIptSingleFrameMode; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
intervalTime: number; | ||
@@ -733,50 +723,26 @@ private _isOpen; | ||
private _bPauseScan; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_lastDeviceId: string; | ||
private _intervalDetectVideoPause; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_video: HTMLVideoElement; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_cvsDrawArea: HTMLCanvasElement; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_divScanArea: any; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_divScanLight: any; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_bgLoading: any; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_bgCamera: any; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_selCam: any; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_selRsl: any; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_optGotRsl: any; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_btnClose: any; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
private _soundOnSuccessfullRead; | ||
@@ -808,13 +774,7 @@ /** | ||
bPlaySoundOnSuccessfulRead: (boolean | string); | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_allCameras: VideoDeviceInfo[]; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_currentCamera?: VideoDeviceInfo; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_videoTrack: MediaStreamTrack; | ||
@@ -845,8 +805,7 @@ /** | ||
barcodeLineWidth: number; | ||
private _region; | ||
private set region(value); | ||
private get region(); | ||
/** | ||
* @ignore | ||
*/ | ||
protected beingLazyDrawRegionsults: boolean; | ||
protected set region(value: null | RegionDefinition | RegionDefinition[]); | ||
protected get region(): null | RegionDefinition | RegionDefinition[]; | ||
protected _indexVideoRegion: number; | ||
/** @ignore */ | ||
constructor(); | ||
@@ -862,22 +821,14 @@ /** | ||
static createInstance(config?: any): Promise<BarcodeScanner>; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
decode(source: Blob | ArrayBuffer | Uint8Array | Uint8ClampedArray | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | string): Promise<TextResult[]>; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
decodeBase64String(source: string): Promise<TextResult[]>; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
decodeUrl(source: string): Promise<TextResult[]>; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
decodeBuffer(buffer: Uint8Array | Uint8ClampedArray | ArrayBuffer | Blob, width: number, height: number, stride: number, format: EnumImagePixelFormat, config?: any): Promise<any>; | ||
private clearMapDecodeRecord; | ||
/** | ||
* Update runtime settings with a given struct or a string of `speed`, `balance` or `coverage`. | ||
* Use `speed`, `balance` and `coverage` to use preset settings for BarcodeScanner. | ||
* Update runtime settings with a given struct, or a string of `speed`, `balance`, `coverage` and `single`(experimental) to use preset settings for BarcodeScanner. | ||
* We recommend using the speed-optimized `single`(experimental) preset if scanning only one barcode at a time. The `single`(experimental) is only available in `BarcodeScanner`. | ||
* The default settings for BarcodeScanner is `speed`. | ||
@@ -894,21 +845,11 @@ * ```js | ||
updateRuntimeSettings(settings: RuntimeSettings | string): Promise<void>; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_onCameraSelChange: () => void; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_onResolutionSelChange: () => void; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_onCloseBtnClick: () => void; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_bindUI(): void; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_unbindUI(): void; | ||
@@ -943,5 +884,3 @@ /** | ||
onUnduplicatedRead?: (txt: string, result: TextResult) => void; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
private _renderSelCameraInfo; | ||
@@ -1038,5 +977,3 @@ /** | ||
isOpen(): boolean; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_show(): void; | ||
@@ -1100,9 +1037,5 @@ /** | ||
getCapabilities(): MediaTrackCapabilities; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
getCameraSettings(): MediaTrackSettings; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
getConstraints(): MediaTrackConstraints; | ||
@@ -1185,17 +1118,9 @@ /** | ||
setFrameRate(value: number): Promise<void>; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_cloneDecodeResults(results: any): any; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
private _loopReadVideo; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_drawRegionsults(results?: TextResult[]): void; | ||
/** | ||
* @ignore | ||
*/ | ||
/** @ignore */ | ||
_clearRegionsults(): void; | ||
@@ -1246,3 +1171,4 @@ /** | ||
BICM_DARK_ON_LIGHT_DARK_SURROUNDING = 32, | ||
BICM_SKIP = 0 | ||
BICM_SKIP = 0, | ||
BICM_REV = 2147483648 | ||
} | ||
@@ -1252,3 +1178,4 @@ declare enum EnumBarcodeComplementMode { | ||
BCM_GENERAL = 2, | ||
BCM_SKIP = 0 | ||
BCM_SKIP = 0, | ||
BCM_REV = 2147483648 | ||
} | ||
@@ -1269,3 +1196,5 @@ declare enum EnumBarcodeFormat_2 { | ||
BM_LOCAL_BLOCK = 2, | ||
BM_SKIP = 0 | ||
BM_SKIP = 0, | ||
BM_THRESHOLD = 4, | ||
BM_REV = 2147483648 | ||
} | ||
@@ -1281,7 +1210,9 @@ declare enum EnumClarityCalculationMethod { | ||
CCM_GENERAL_HSV = 2, | ||
CCM_SKIP = 0 | ||
CCM_SKIP = 0, | ||
CCM_REV = 2147483648 | ||
} | ||
declare enum EnumColourConversionMode { | ||
CICM_GENERAL = 1, | ||
CICM_SKIP = 0 | ||
CICM_SKIP = 0, | ||
CICM_REV = 2147483648 | ||
} | ||
@@ -1295,3 +1226,4 @@ declare enum EnumConflictMode { | ||
DRM_GENERAL = 2, | ||
DRM_SKIP = 0 | ||
DRM_SKIP = 0, | ||
DRM_REV = 2147483648 | ||
} | ||
@@ -1301,3 +1233,4 @@ declare enum EnumDPMCodeReadingMode { | ||
DPMCRM_GENERAL = 2, | ||
DPMCRM_SKIP = 0 | ||
DPMCRM_SKIP = 0, | ||
DPMCRM_REV = 2147483648 | ||
} | ||
@@ -1367,3 +1300,4 @@ declare enum EnumErrorCode { | ||
GTM_ORIGINAL = 2, | ||
GTM_SKIP = 0 | ||
GTM_SKIP = 0, | ||
GTM_REV = 2147483648 | ||
} | ||
@@ -1377,3 +1311,4 @@ declare enum EnumImagePreprocessingMode { | ||
IPM_MORPHOLOGY = 32, | ||
IPM_SKIP = 0 | ||
IPM_SKIP = 0, | ||
IPM_REV = 2147483648 | ||
} | ||
@@ -1418,3 +1353,5 @@ declare enum EnumIMResultDataType { | ||
LM_STATISTICS_MARKS = 32, | ||
LM_STATISTICS_POSTAL_CODE = 64 | ||
LM_STATISTICS_POSTAL_CODE = 64, | ||
LM_CENTRE = 128, | ||
LM_REV = 2147483648 | ||
} | ||
@@ -1424,3 +1361,4 @@ declare enum EnumPDFReadingMode { | ||
PDFRM_AUTO = 2, | ||
PDFRM_VECTOR = 4 | ||
PDFRM_VECTOR = 4, | ||
PDFRM_REV = 2147483648 | ||
} | ||
@@ -1439,3 +1377,4 @@ declare enum EnumQRCodeErrorCorrectionLevel { | ||
RPM_GENERAL_HSV_CONTRAST = 16, | ||
RPM_SKIP = 0 | ||
RPM_SKIP = 0, | ||
RPM_REV = 2147483648 | ||
} | ||
@@ -1464,3 +1403,4 @@ declare enum EnumResultCoordinateType { | ||
TACM_VERIFYING_PATCHING = 4, | ||
TACM_SKIP = 0 | ||
TACM_SKIP = 0, | ||
TACM_REV = 2147483648 | ||
} | ||
@@ -1470,3 +1410,4 @@ declare enum EnumTextFilterMode { | ||
TFM_GENERAL_CONTOUR = 2, | ||
TFM_SKIP = 0 | ||
TFM_SKIP = 0, | ||
TFM_REV = 2147483648 | ||
} | ||
@@ -1477,3 +1418,4 @@ declare enum EnumTextResultOrderMode { | ||
TROM_FORMAT = 4, | ||
TROM_SKIP = 0 | ||
TROM_SKIP = 0, | ||
TROM_REV = 2147483648 | ||
} | ||
@@ -1483,3 +1425,4 @@ declare enum EnumTextureDetectionMode { | ||
TDM_GENERAL_WIDTH_CONCENTRATION = 2, | ||
TDM_SKIP = 0 | ||
TDM_SKIP = 0, | ||
TDM_REV = 2147483648 | ||
} | ||
@@ -1486,0 +1429,0 @@ declare const Dynamsoft: { |
{ | ||
"name": "dynamsoft-javascript-barcode", | ||
"version": "7.4.0-v1", | ||
"version": "7.5.0-v0", | ||
"description": "Dynamsoft Barcode Reader JS is a recognition SDK which enables you to embed barcode reading functionality in your web, desktop, and mobile applications. With a few lines of JavaScript code, you can develop a robust application to scan a linear barcode, QR Code, DaraMatrix, PDF417, and Aztec Code.", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -28,5 +28,5 @@ # Dynamsoft JavaScript Barcode SDK for Web | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v1/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.5.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script> | ||
<!-- or --> | ||
<script src="https://unpkg.com/dynamsoft-javascript-barcode@7.4.0-v1/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script> | ||
<script src="https://unpkg.com/dynamsoft-javascript-barcode@7.5.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script> | ||
``` | ||
@@ -42,3 +42,3 @@ | ||
<body> | ||
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v1/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.5.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script> | ||
<script> | ||
@@ -97,2 +97,3 @@ let scanner = null; | ||
- [Self-hosted | Offline | Intranet Deployment](#self-hosted--offline--intranet-deployment) | ||
- [Known Issues](#known-issues) | ||
- [Changelog](#changelog) | ||
@@ -214,3 +215,3 @@ - [How to Upgrade](#how-to-upgrade) | ||
<!-- Please visit https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx to get a trial license. --> | ||
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v1/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.5.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script> | ||
<script> | ||
@@ -274,3 +275,3 @@ let scanner = null; | ||
```javascript | ||
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v1/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.5.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script> | ||
``` | ||
@@ -281,3 +282,3 @@ | ||
```javascript | ||
<script src="https://unpkg.com/dynamsoft-javascript-barcode@7.4.0-v1/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script> | ||
<script src="https://unpkg.com/dynamsoft-javascript-barcode@7.5.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script> | ||
``` | ||
@@ -429,3 +430,3 @@ | ||
<!-- Please visit https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx to get a trial license. --> | ||
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v1/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.5.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script> | ||
<script> | ||
@@ -658,2 +659,6 @@ let scanner = null; | ||
## Known Issues | ||
* We use `webgl` in `BarcodeScannner` by default. If you need a specific resolution like `800 * 600` and find the barcode area is wrong, you can turn `webgl` off by setting `scanner._bUseWebgl = false;`. | ||
## Changelog | ||
@@ -670,3 +675,3 @@ | ||
```javascript | ||
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v1/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.5.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script> | ||
``` | ||
@@ -724,3 +729,3 @@ | ||
<!-- Please visit https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx to get a trial license. --> | ||
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v1/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.5.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script> | ||
``` | ||
@@ -727,0 +732,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
13336709
732
54
16887