You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.4 KiB
34 lines
1.4 KiB
10 months ago
|
var __extends = (this && this.__extends) || (function () {
|
||
|
var extendStatics = function (d, b) {
|
||
|
extendStatics = Object.setPrototypeOf ||
|
||
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||
|
return extendStatics(d, b);
|
||
|
};
|
||
|
return function (d, b) {
|
||
|
extendStatics(d, b);
|
||
|
function __() { this.constructor = d; }
|
||
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||
|
};
|
||
|
})();
|
||
|
import { BrowserCodeReader } from './BrowserCodeReader';
|
||
|
import QRCodeReader from '../core/qrcode/QRCodeReader';
|
||
|
/**
|
||
|
* @deprecated Moving to @zxing/browser
|
||
|
*
|
||
|
* QR Code reader to use from browser.
|
||
|
*/
|
||
|
var BrowserQRCodeReader = /** @class */ (function (_super) {
|
||
|
__extends(BrowserQRCodeReader, _super);
|
||
|
/**
|
||
|
* Creates an instance of BrowserQRCodeReader.
|
||
|
* @param {number} [timeBetweenScansMillis=500] the time delay between subsequent decode tries
|
||
|
*/
|
||
|
function BrowserQRCodeReader(timeBetweenScansMillis) {
|
||
|
if (timeBetweenScansMillis === void 0) { timeBetweenScansMillis = 500; }
|
||
|
return _super.call(this, new QRCodeReader(), timeBetweenScansMillis) || this;
|
||
|
}
|
||
|
return BrowserQRCodeReader;
|
||
|
}(BrowserCodeReader));
|
||
|
export { BrowserQRCodeReader };
|
||
|
//# sourceMappingURL=BrowserQRCodeReader.js.map
|