@scandit/web-datacapture-barcode
Version:
Scandit Data Capture SDK for the Web
1 lines • 1 kB
JavaScript
let e=0;var t=class{constructor(t,n){this._content=null,this.uid=``,this._searchOptions=t,this._content=n,this.uid=`BarcodeFindItem-${e++}`}get searchOptions(){return this._searchOptions}get content(){return this._content}toJSONObject(){let e={searchOptions:{barcodeData:this.searchOptions.barcodeData},content:null};return this.content!=null&&(e.content={info:this.content.info,additionalInfo:this.content.additionalInfo,image:this.content.image}),e}},n=class e{constructor(e){this._brush=null,this._barcodeData=e}static withBrush(t,n){let r=new e(t);return r._brush=n,r}get barcodeData(){return this._barcodeData}get brush(){return this._brush}},r=class{constructor(e,t,n){this._info=null,this._additionalInfo=null,this._image=null,this._info=e??null,this._additionalInfo=t??null,this._image=n??null}get image(){return this._image}get additionalInfo(){return this._additionalInfo}get info(){return this._info}};export{t as BarcodeFindItem,r as BarcodeFindItemContent,n as BarcodeFindItemSearchOptions};