@scandit/web-datacapture-barcode
Version:
Scandit Data Capture SDK for the Web
1 lines • 685 B
JavaScript
const e={barcodeCapture:`smartScanSelection`,sparkScan:`smartScanSelectionForSparkScan`};var t=class t{constructor(e){this.type=e}static forMode(n){let r=n,i=e[r.type];if(i)return new t(i);let a=r.type.charAt(0).toUpperCase()+r.type.slice(1);throw Error(`SmartScanSelection overlay is not supported for ${a} mode.`)}setBrush(e){this.brush=e}setSelectedBrush(e){this.selectedBrush=e}setErrorBrush(e){this.errorBrush=e}toJSONObject(){var e,t,n;return{type:this.type,brush:(e=this.brush)==null?void 0:e.toJSONObject(),selectedBrush:(t=this.selectedBrush)==null?void 0:t.toJSONObject(),errorBrush:(n=this.errorBrush)==null?void 0:n.toJSONObject()}}};export{t as SmartScanSelectionOverlay};