dynamsoft-barcode-reader-bundle 11.4.2000-beta-202604162228 → 11.4.2000
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dbr.bundle.d.ts +66 -31
- package/dist/dbr.bundle.esm.js +2 -2
- package/dist/dbr.bundle.js +2 -2
- package/dist/dbr.bundle.mjs +2 -2
- package/dist/dbr.bundle.worker.js +2 -2
- package/package.json +3 -29
- package/samples.url +1 -1
package/dist/dbr.bundle.d.ts
CHANGED
|
@@ -1865,7 +1865,7 @@ declare const EnumBarcodeFormat: {
|
|
|
1865
1865
|
BF_GS1_DATABAR_LIMITED: bigint;
|
|
1866
1866
|
/**Patch code. */
|
|
1867
1867
|
BF_PATCHCODE: bigint;
|
|
1868
|
-
/**
|
|
1868
|
+
/**Code 32 */
|
|
1869
1869
|
BF_CODE_32: bigint;
|
|
1870
1870
|
/**PDF417 */
|
|
1871
1871
|
BF_PDF417: bigint;
|
|
@@ -3318,7 +3318,7 @@ declare class Camera {
|
|
|
3318
3318
|
resolve: () => void;
|
|
3319
3319
|
reject: () => void;
|
|
3320
3320
|
};
|
|
3321
|
-
|
|
3321
|
+
_getUserMediaTimeout: number;
|
|
3322
3322
|
_paused: boolean;
|
|
3323
3323
|
_shouldClose: boolean;
|
|
3324
3324
|
_cameraChangedWhenPaused: boolean;
|
|
@@ -3343,6 +3343,8 @@ declare class Camera {
|
|
|
3343
3343
|
static _delayBeforeGetUserMedia: number;
|
|
3344
3344
|
static _delayBeforeApplyConstraints: number;
|
|
3345
3345
|
static _countEnsureResolution: number;
|
|
3346
|
+
static _videoPlayTimeout: number;
|
|
3347
|
+
static _bReopenWhenChangeResolution: boolean;
|
|
3346
3348
|
static _arrConstructors: CameraZsFunc[];
|
|
3347
3349
|
static _arrOnOpen: CameraZsFunc[];
|
|
3348
3350
|
static _arrBeforeClose: CameraZsFunc[];
|
|
@@ -3435,6 +3437,15 @@ declare class Camera {
|
|
|
3435
3437
|
}): Promise<void>;
|
|
3436
3438
|
requestResolution(notRequired: null): Promise<void>;
|
|
3437
3439
|
requestResolution(resetToDefault: undefined): Promise<void>;
|
|
3440
|
+
/**
|
|
3441
|
+
* Similar to `camera.track.applyConstraints`,
|
|
3442
|
+
* but auto add constraints of original camera and original resolution.
|
|
3443
|
+
* Primarily used for advanced camera settings like focusDistance, zoom, colorTemperature.
|
|
3444
|
+
* Don't directly change camera or resolution by this API,
|
|
3445
|
+
* use `requestCamera` and `requestResolution` instead.
|
|
3446
|
+
* Set camera or resolution using `applyConstraints` will result in undefined behavior.
|
|
3447
|
+
*/
|
|
3448
|
+
applyConstraints(constraints?: MediaTrackConstraints): Promise<void>;
|
|
3438
3449
|
/**
|
|
3439
3450
|
* @param config
|
|
3440
3451
|
* `x`/`y`/`width`/`height` is normally `0 ~ video.videoWidth` or `0 ~ video.videoHeight`,
|
|
@@ -3781,6 +3792,7 @@ declare namespace Camera {
|
|
|
3781
3792
|
_dceLastResolution: any;
|
|
3782
3793
|
cameraOpenTimeout: any;
|
|
3783
3794
|
_bTryAnotherCameraWhenFailToOpen: boolean;
|
|
3795
|
+
_bAutoSingleFrameModeWhenIosPwaFail: boolean;
|
|
3784
3796
|
_oriOpen(): Promise<void>;
|
|
3785
3797
|
open(): Promise<void | {
|
|
3786
3798
|
deviceId: string;
|
|
@@ -4101,17 +4113,17 @@ declare class Feedback {
|
|
|
4101
4113
|
static vibrateDuration: number;
|
|
4102
4114
|
}
|
|
4103
4115
|
declare const DrawingStyleManager: {
|
|
4104
|
-
STYLE_GREEN_STROKE: any;
|
|
4105
|
-
STYLE_GREEN_STROKE_FILL: any;
|
|
4106
|
-
STYLE_GREEN_STROKE_TRANSPARENT: any;
|
|
4107
4116
|
STYLE_BLUE_STROKE: any;
|
|
4108
|
-
|
|
4109
|
-
STYLE_BLUE_STROKE_TRANSPARENT: any;
|
|
4117
|
+
STYLE_GREEN_STROKE: any;
|
|
4110
4118
|
STYLE_ORANGE_STROKE: any;
|
|
4111
|
-
STYLE_ORANGE_STROKE_FILL: any;
|
|
4112
|
-
STYLE_ORANGE_STROKE_TRANSPARENT: any;
|
|
4113
4119
|
STYLE_YELLOW_STROKE: any;
|
|
4120
|
+
STYLE_BLUE_STROKE_FILL: any;
|
|
4121
|
+
STYLE_GREEN_STROKE_FILL: any;
|
|
4122
|
+
STYLE_ORANGE_STROKE_FILL: any;
|
|
4114
4123
|
STYLE_YELLOW_STROKE_FILL: any;
|
|
4124
|
+
STYLE_BLUE_STROKE_TRANSPARENT: any;
|
|
4125
|
+
STYLE_GREEN_STROKE_TRANSPARENT: any;
|
|
4126
|
+
STYLE_ORANGE_STROKE_TRANSPARENT: any;
|
|
4115
4127
|
STYLE_YELLOW_STROKE_TRANSPARENT: any;
|
|
4116
4128
|
createDrawingStyle(style: any): any;
|
|
4117
4129
|
getDrawingStyle(id: any): any;
|
|
@@ -4226,7 +4238,16 @@ declare class LineDrawingItem extends DrawingItem {
|
|
|
4226
4238
|
y: number;
|
|
4227
4239
|
};
|
|
4228
4240
|
};
|
|
4229
|
-
setLine(value:
|
|
4241
|
+
setLine(value: {
|
|
4242
|
+
startPoint: {
|
|
4243
|
+
x: number;
|
|
4244
|
+
y: number;
|
|
4245
|
+
};
|
|
4246
|
+
endPoint: {
|
|
4247
|
+
x: number;
|
|
4248
|
+
y: number;
|
|
4249
|
+
};
|
|
4250
|
+
}): void;
|
|
4230
4251
|
}
|
|
4231
4252
|
declare class QuadDrawingItem extends DrawingItem {
|
|
4232
4253
|
quad: {
|
|
@@ -4251,7 +4272,12 @@ declare class QuadDrawingItem extends DrawingItem {
|
|
|
4251
4272
|
y: number;
|
|
4252
4273
|
}[];
|
|
4253
4274
|
};
|
|
4254
|
-
setQuad(value:
|
|
4275
|
+
setQuad(value: {
|
|
4276
|
+
points: {
|
|
4277
|
+
x: number;
|
|
4278
|
+
y: number;
|
|
4279
|
+
}[];
|
|
4280
|
+
}): void;
|
|
4255
4281
|
}
|
|
4256
4282
|
declare class RectDrawingItem extends DrawingItem {
|
|
4257
4283
|
rect: {
|
|
@@ -4276,7 +4302,12 @@ declare class RectDrawingItem extends DrawingItem {
|
|
|
4276
4302
|
width: number;
|
|
4277
4303
|
height: number;
|
|
4278
4304
|
};
|
|
4279
|
-
setRect(value:
|
|
4305
|
+
setRect(value: {
|
|
4306
|
+
x: number;
|
|
4307
|
+
y: number;
|
|
4308
|
+
width: number;
|
|
4309
|
+
height: number;
|
|
4310
|
+
}): void;
|
|
4280
4311
|
}
|
|
4281
4312
|
declare class TextDrawingItem extends DrawingItem {
|
|
4282
4313
|
text: string;
|
|
@@ -4297,14 +4328,19 @@ declare class TextDrawingItem extends DrawingItem {
|
|
|
4297
4328
|
height: number;
|
|
4298
4329
|
}, drawingStyleId?: any);
|
|
4299
4330
|
getText(): string;
|
|
4300
|
-
setText(value:
|
|
4301
|
-
|
|
4331
|
+
setText(value: string): void;
|
|
4332
|
+
getTextRect(): {
|
|
4302
4333
|
x: number;
|
|
4303
4334
|
y: number;
|
|
4304
4335
|
width: number;
|
|
4305
4336
|
height: number;
|
|
4306
4337
|
};
|
|
4307
|
-
|
|
4338
|
+
setTextRect(value: {
|
|
4339
|
+
x: number;
|
|
4340
|
+
y: number;
|
|
4341
|
+
width: number;
|
|
4342
|
+
height: number;
|
|
4343
|
+
}): void;
|
|
4308
4344
|
}
|
|
4309
4345
|
declare class ImageDrawingItem extends DrawingItem {
|
|
4310
4346
|
image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement;
|
|
@@ -4332,14 +4368,25 @@ declare class ImageDrawingItem extends DrawingItem {
|
|
|
4332
4368
|
height: number;
|
|
4333
4369
|
}, maintainAspectRatio: boolean, drawingStyleId?: any);
|
|
4334
4370
|
getImage(): HTMLVideoElement | HTMLCanvasElement | HTMLImageElement;
|
|
4335
|
-
setImage(
|
|
4336
|
-
|
|
4371
|
+
setImage(image: {
|
|
4372
|
+
bytes: Uint8Array;
|
|
4373
|
+
width: number;
|
|
4374
|
+
height: number;
|
|
4375
|
+
stride: number;
|
|
4376
|
+
format: any;
|
|
4377
|
+
} | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement): void;
|
|
4378
|
+
getImageRect(): {
|
|
4337
4379
|
x: number;
|
|
4338
4380
|
y: number;
|
|
4339
4381
|
width: number;
|
|
4340
4382
|
height: number;
|
|
4341
4383
|
};
|
|
4342
|
-
|
|
4384
|
+
setImageRect(value: {
|
|
4385
|
+
x: number;
|
|
4386
|
+
y: number;
|
|
4387
|
+
width: number;
|
|
4388
|
+
height: number;
|
|
4389
|
+
}): void;
|
|
4343
4390
|
}
|
|
4344
4391
|
|
|
4345
4392
|
declare enum EnumDrawingItemMediaType {
|
|
@@ -4355,26 +4402,14 @@ declare enum EnumDrawingItemMediaType {
|
|
|
4355
4402
|
* Represents a text element. This allows for the inclusion of textual content as a distinct drawing item within the graphic representation.
|
|
4356
4403
|
*/
|
|
4357
4404
|
DIMT_TEXT = 4,
|
|
4358
|
-
/**
|
|
4359
|
-
* Represents an arc, which is a portion of the circumference of a circle or an ellipse. Arcs are used to create curved shapes and segments.
|
|
4360
|
-
*/
|
|
4361
|
-
DIMT_ARC = 8,
|
|
4362
4405
|
/**
|
|
4363
4406
|
* Represents an image. This enables embedding bitmap images within the drawing context.
|
|
4364
4407
|
*/
|
|
4365
4408
|
DIMT_IMAGE = 16,
|
|
4366
|
-
/**
|
|
4367
|
-
* Represents a polygon, which is a plane figure that is described by a finite number of straight line segments connected to form a closed polygonal chain or circuit.
|
|
4368
|
-
*/
|
|
4369
|
-
DIMT_POLYGON = 32,
|
|
4370
4409
|
/**
|
|
4371
4410
|
* Represents a line segment. This is the simplest form of a drawing item, defined by two endpoints and the straight path connecting them.
|
|
4372
4411
|
*/
|
|
4373
|
-
DIMT_LINE = 64
|
|
4374
|
-
/**
|
|
4375
|
-
* Represents a group of drawing items. This allows for the logical grouping of multiple items, treating them as a single entity for manipulation or transformation purposes.
|
|
4376
|
-
*/
|
|
4377
|
-
DIMT_GROUP = 128
|
|
4412
|
+
DIMT_LINE = 64
|
|
4378
4413
|
}
|
|
4379
4414
|
declare enum EnumDrawingItemState {
|
|
4380
4415
|
/**
|